Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Jira automation - create one or more tasks based on field value

Theis Joergensen
Contributor
February 23, 2023

Hi Community, 

 

I want to create an automation rule that can create one or more tasks depending on the value(S) selected in a field. 

Basically it's a access request request type where employees can request access to one or more applications. 

In case they just select one ex. Jira, I will just use automation to assign the ticket to the app responsible. However, in case they both select Jira and Slack, i would like the rule to create two tasks, one for each which should then be assigned to two different app owners. The combination of apps selected by the different requestors can be many. 

Any recommendations on how this can be achieved?

 

Best regards

Theis

2 answers

1 vote
Stefan Salzl
Community Champion
February 23, 2023

Hi @Theis Joergensen 

assuming the field you get the values from is a select field or picker field I would recommend to work with a "for:each" branch iterating over the list from your field and creating a task in each iteration.

Further questions from my side would be:

  • when should this be done (what is the trigger)?
  • where do the values in the field come from?
  • where are the app owners stored so they can be automatically assigned?

Best
Stefan

0 votes
Jack Brickey
Community Champion
February 23, 2023

Hi @Theis Joergensen , let me give you something to start with. If you get stuck let me know and I can actually create an example rule...

trigger - issue created

create a Variable to store the count (size) of the multi-select - numSelected = {{issue.Your Customfield.size}} 

use if/else block...

IF the "numSelected = 1 if so the action would be to assign the current issue based on the value then exit rule.

then use repeated else if matches to test for a value and create sub-task if the value exists.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events