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 Leaders.
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

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 Leaders.
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 Leaders.
February 2, 2025

And updating, not overwriting:

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events