Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Syntax to assign issue.assignee to a custom field

My Smart Content October 27, 2022

Hi all!

I create "Rédacteur" a custom field.

image_2022-10-27_102325892.png

I want to put the issue.assignee in this custom field.

I tried:

"Rédacteur": "{{issue.assignee}}" - nothing happened

"Rédacteur": {{issue.assignee}} - error JSON...

image_2022-10-27_102211430.png

What is the right syntax please?

 

1 answer

1 accepted

0 votes
Answer accepted
Alex Koxaras -Relational-
Community Champion
October 27, 2022

Hi @My Smart Content 

Try {{assignee.accountId}}

User picker fields accepts IDs if I'm not mistaken.

My Smart Content October 27, 2022

Hi Alex!

Doesn't work! :(

Alex Koxaras -Relational-
Community Champion
October 27, 2022

@My Smart Content you can do the following and it will work:

redactuer.png

Alex Koxaras -Relational-
Community Champion
October 27, 2022

@My Smart Content and on the advanced editing with JSON the proper format would be:

{
"fields": {
"customfield_10191": { "id": "{{issue.assignee}}" }
}
}
Alex Koxaras -Relational-
Community Champion
October 27, 2022

Where customfield_10191 you should replace this with your Redacteur field id.

My Smart Content October 27, 2022

Youpii Alex!

It works!!!

Thank you so munch.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events