Hi - I'm trying to add an automation that would add the person who sets the status of the JIRA item to Done as an Interested Party of the item. Is this possible ?
I even tried to create a sub-test and I was able to assign the newly subtask to the person who is trigering the event but for the Interested Party there is no "user who triggered the event" option but only a copy from and I wasn't able to copy from a child record
Hi @anacst
Welcome to the Atlassian Community!
You can achieve this via the following automation.
Trigger - Issue Transitioned --> Done
If you are using Cloud, use the {{initiator.accountId}} smart value in the "Interested Party" custom field, if you are using Data Center, use {{initiator}}.
If you want to keep the existing value on it, and add the new ones, use the following JSON in the Additional Fields section when using the "Edit issue" action.
Cloud.
{
"update": {
"Interested Party": [
{ "add": { "accountId": "{{initiator.accountId}}" } }
]
}
}
Data Center.
{
"update": {
"Interested Party": [
{ "add": { "name": "{{initiator.name}}" } }
]
}
}
Will be glad if this works for you!
Hi @anacst
Welcome to Atlassian community.
Instead of using custom field you could add the current user in the watchers, it could be done with automation.
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @anacst -- Welcome to the Atlassian Community!
Without seeing the specifics of your rule...
I expect that is possible when the rule is triggered on the work item transition to "Done". And the custom field value for "Interested Party" could be set using the {{initiator.accountId}} smart value directly or with JSON.
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.