where can I find assignee_id? | Community
Skip to main content

where can I find assignee_id?

  • September 24, 2021
  • 7 replies
  • 0 views

hello, I'm quite new to zendesk and trying to create a new ticket which specifies the assignee via api.

Then I'm just wondering where I can find assignee_id actually?

Sorry for asking a super simple question but I just cannot find them.

Thanks.

7 replies

Eric27
  • September 27, 2021

Hey Sonogi,

If you go to admin> manage > people and click on the user's profile that you want, you will see their user id in the URL. You can then use that for the assignee_id. Otherwise you can pull this programmatically via api.

Have a wonderful day!

Eric Nelson | Manager - Developer Advocacy


Kirby
  • September 22, 2022

any chance this could be added to the available placeholders, similar to ticket.assignee_id?


Greg29
  • September 22, 2022

Hi Kirby! I'm not sure the reason that it isn't currently available, however I'm assuming that there is likely a valid reason that this is not listed. I'd be happy to check internally, could you just let me know your use-case first so that I can see if there's an approach that we can find that wouldn't require this?


Kirby
  • September 22, 2022

Of course!  My use case is that I publish automated comments (via API) to tickets and I would like them to be in the voice of the assigned agent, not me.  I believe my name is being used as it is associated with the authorization token.


Greg29
  • September 22, 2022

And just so that I understand the full picture, one more question...where does the triggering event come from and what method is used to create the ticket update? I'm just trying to get creative with where we have the opportunity to get the assignee_id in the process.


Kirby
  • October 4, 2022

Apologies, Greg.  I replied to the email but the response didn't get placed here...

 

It's an automation with the following conditions
 
Status is Pending
AND Hours since update is (calendar) Greater than 96
AND Hours since pending is (calendar) Greater than 96
 
 
 

Kirby
  • October 18, 2022

hi @greg29, any thoughts on this one?