My issue has a "User Picker (multiple users)" called "Reviewers". I'd like to write an automation rule to create a subtask for each user in Reviewers and set that user as the assignee.
I have written a manually triggered rule which works when there's only one person in the Reviewers field. However, I need to be able to iterate over each user I think, and I can't work out how to do that.
Any suggestions for Jira Data Center would be gratefully received.
Hi @Helen
Unfortunately, Jira Data Center does not have the Advanced Branching over smart values feature as that would make this easy. Here is the suggestion to add that feature, which you may watch / vote for to see progress: https://jira.atlassian.com/browse/JIRAAUTOSERVER-749
There are at least two workarounds using automation rules:
#1) Use the REST API bulk-issue create endpoint
In my opinion, this is the better approach as it is less likely to fail due to rule looping.
#2) Use a recursive rule with the Incoming Webhook trigger
This two-rule approach is susceptible to multiple possible failure points, and so the #1 approach is better.
Kind regards,
Bill
Thanks Bill, the option of a bulk create via the REST API hadn't occurred to me. That seems like a good option - definitely more robust than the recursive rule. I'll give it a try.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Helen ,
I am Nacho and i am part of Decadis.
You can achieve the desired behavior by using our app Jira Workflow Toolbox as mentioned by Christos.
To do so, a JWT automation rule can be created with the following configuration:
Expression from the issue details in which "NNNNN" must be modified for the id of the Reviewers custom field.
toStringList(%{trigger.issue.cfNNNNN})You can easily decide when these subtasks will be created, for example when a field is updated or a transition is completed.
It is also possible to add a condition or validator to restrict the issue creation depending on your needs.
If you need any kind of assistance in the creation, please do not hesitate to contact us via our Support portal .
Best regards,
Nacho
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.
The Advanced Branch is not supported for Jira Server or Data Center automation, and thus this approach will not work. Here is the suggestion to add the feature:
https://jira.atlassian.com/browse/JIRAAUTOSERVER-749
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.
Hey @Bill Sheboy you are absolutely right, correct be if im wrong but u can achieve the branching functionality with JWT or JMWE if u have these 3rd party apps in DC.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No doubt there may be marketplace apps to fill that need for Data Center, and I was describing above how to do it with the built-in features...until that branch is added for DC (which seems unlikely given the upcoming sunset of DC support).
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.