The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Copying watchers to request participants

Lukasz Grobelny
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
February 2, 2025

Quick question - is there an easy way to copy all watchers of the newly created issue to Request Participants field?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Lukasz Grobelny
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
February 2, 2025

ok nevermind, just did that

{
"fields": {
"customfield_10031": [
{{#issue.watchers}}
{"accountId": "{{accountId}}"}{{^last}},{{/last}}
{{/issue.watchers}}
]
}
}

Lukasz Grobelny
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
February 2, 2025

And updating, not overwriting:

{
"fields": {
"customfield_10031": [
{{#customfield_10031}}
{"accountId": "{{accountId}}"},
{{/customfield_10031}}
{{#issue.watchers}}
{"accountId": "{{accountId}}"}{{^last}},{{/last}}
{{/issue.watchers}}
]
}
}
TAGS
AUG Leaders

Atlassian Community Events