Summary
In some cases, we would like to set the organization field according to the request participants for the Jira Service Management tickets. In this case, as Jira does not have the functionality natively, a closest solution is possible through automation rules.
Solution
- First, as an Org/Site admin, create an automation rule similar to the example below:
- The Request Participants field is not recognized by Automation as populated after issue creation due to the way Jira Service Management processes updates. Jira fires the 'issue created' event before JSM has time to add the participants. This isn't considered a BUG, but how the system is designed to work asynchronously. The field will be updated shortly after creation, which is why you see it in the subsequent 'issue updated' event. For now, an alternative solution would be to add a re-fetch issue data after the trigger to update the Automation rule with the correct data:
Results
When a specific user is added as request participant to a ticket, a selected organization will be added to the ticket. With this set, organization members will be able to view and comment on this ticket.
You can also view more details about Automation rules in the document below:
4 comments