Hi,
i am currently working on an automation that automatically adds request participants to the trigger issue.
The trigger issue is an ITSM request via the portal. When the request is created the automation looks up related issues in a JIRA project and sends notifications to the user selected in the field "Asset Owner". So fine so good.
Now i want the users in the field "Asset Owner" to be automatically added as request participants to the trigger issue. How do i have to edit my current automation? (See image). Thx in advance.
You could use the Edit Work Item action with a dynamic JSON expression to add more Request Participants. For some additional details:
Your final expression will likely look like this, where customfield_12345 is the Request Participants and customfield_67890 is your "Asset Owner":
{
"update": {
"customfield_12345": [
{{#triggerIssue.customfield_67890.value}}
{
"add": {
"id": "{{.}}"
}
} {{^last}}, {{/}}
{{/}}
]
}
}
Kind regards,
Bill
Kind of I had feeling you will look Here. It looks like Automations summoning you 🤠😅
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Marcel Jünge
First please specify, Which field Type are your ” Assets Owner "?
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.
@Bill Sheboy already provided you good answer.
What you should remember branches on multiple issues run separately, so you shouldn't use branch to build the participant list on the request.
Keep the email inside the branch, but add the Request participants update outside the branch on the trigger issue.
Take advices from @Bill Sheboy and play a little with that.
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.