Skip to main content

Looking at this documentation to create a Ticket and add a Follower at the same time.
https://apidocs-cdn-g84-useast2.incidentiq.com/docs/v1/c2063c5b4a522-submit-a-new-ticket

But, I’m unsuccessful.  Is anybody able to accomplish this?

I’ve tried
“TicketFollowers”: “UID”
“TicketFollowersUserIds”: “UID”
“TicketFollowersUserIds”: c“UID”]

This is not working for me either whether I try all options listed above. The only follower that gets added after creating a ticket is the user ID I’ve listed for `OwnerId` and `ForId`.

 


Good Morning ​@jo.cpa and ​@JBauer 693f843 mva 

I hope you are both doing well so far today! To add users as followers to a ticket during creation, you will want to pass the userids for the followers you would like to add in d] brackets for the TicketFollowerUserIds value. An example of what this should look like in the body of the call is also provided below as well. If you would like to add more than one user, then you will want to add a comma after the second “ and then supply the next userid for the user you would like added as well with the userid contained in quotes like the first userid. With that said though, if any issues are encountered though or if you may have any questions or concerns, please let me know! 

"TicketFollowerUserIds":r"00000000-0000-0000-0000-000000000000"]

Best Regards,
Drew


Doesn’t work.  As mentioned, before….
 

 


@jo.cpa It looks like you have followers, not follower. Try it without the “S” 😄


@JBauer 693f843 mva has it without the “s”.
I’ve tried it without the “s” as well.  Same result.

 


Hi ​@athaxton_iiQ,

I tried that, but am still not seeing the user I’m trying to add as a follower in the response. The only ticket follower being added is the user ID I set for the ticket submitter. Not sure if where I place the follower user IDs within the request body matters or not.

 


@jo.cpa ​@JBauer 693f843 mva  Hmm that is a bit odd that adding the line was unable to add additional followers on the ticket as intended since I pulled the line directly from an API call made by the system. With that said though, when taking another look at the API call, I did notice an additional line for UpdateTicketFollowers which may be the missing puzzle piece we are missing here. If it wouldn’t be too much trouble, would you be able to try adding this line to the API call as well to see if this may be able to add the follower upon the ticket creation? It should not matter where this line is included in the body as far as I am aware, but if the line is included at the end, then you will want to remove the final , before the last }. 

"UpdateTicketFollowers":true,

Best Regards,

Drew


That did it.  Thank you!


Hi ​@athaxton_iiQ,

The API call was successful after adding the “UpdateTicketFollowers” line. Thanks for your help with this!


Reply