The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hi, I need to add all the users mentioned in created comment to custom field Cooperators.
Cooperators is a field with type "User Picker (multiple users)".
How to do it in Jira automation?
Thanks in advance for any suggestions.
A couple of ways to do this are with an advanced, smart value branch to loop and with a single edit:
Please consider if you want to clear or add to existing Cooperator values if multiple comments occur.
This is a complicated rule to write, so I recommend doing it one step at a time and writing the intermediate results to the audit log before making any edits to the issue.
Kind regards,
Bill
Bill, thank you for answer.
Don't you have an example for "regular expression with match() to parse the users' account ID values out of the comment" ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, Martin.
Writing automation rules often requires experimentation. I encourage you to try things, such as writing comments to the audit log, to learn more about how Jira implements things like mentions...as that will give you ideas for how to parse them with regular expressions.
To get you started, this expression will return a list of user account ID values for the last comment added:
{{issue.comment.last.body.split("\n").match("\[~accountid:(.*)\].*")}}
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.
👋 Hi there Jira Community! A few months ago we shared with you plans around renaming epics in your company-managed projects. As part of these changes, we highlighted upcoming changes to epics on...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.