Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Inserting a user

Martin
Contributor
July 17, 2023

Hi there,

 

I want to write a specific user into a JDP field. Those are not available in the fields in automation and I must use JSON. I kinda hit a wall here.

My field is: customfield_10455

My guess is I need to use the accountID of the person (since I always use the same in my case): 60b00153cbc3aa0068de6e2c

 

My example started with this one, that worked for another need. However, I don't need to retreive the acccountID of the assignee, I need to push this one: 60b00153cbc3aa0068de6e2c

 

{
"fields": {
"customfield_10455":[{{triggerIssue.assignee.accountId.asJsonObject("accountId")}}]
}
}

 

Thank you for helping me. 

 

 

1 answer

0 votes
Nick Haller
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 18, 2023

Hi @Martin ,

Since People fields are not currently supported with automations at this time, the workaround you have above is probably the best way of achieving this use case (especially since the account ID is returned using the API, and not the user's email when reviewing the Assignee field). 

I was able to test with your method as well - swapping my people-type custom field ID with yours - and it seemed to work well!

people1.jpgpeople2.jpg

Martin
Contributor
July 18, 2023

Hi @Nick Haller 

 

Thank you for your answer.

Yes that technic works, but what I need, is to always inster a specific user. That's where I hit the wall.

 

Ex:

If the Idea type strategy is X

Then add the Sponsor Y in the customfield Z.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events