Forums

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

Jira Automation - creating several subtasks based on field values.

Has M. March 13, 2023

I have a field called System Access. It looks like below:

  • System Access (multi-select field)
    • Value1: NST should be assigned to Assignee1
    • Value2: NST (elevated) should be assigned to Assignee1
    • Value3: CNG should be assigned to Assignee2
    • Value4: LVR should be assigned to Assignee3

I tried all these different automation for this. scenario

Option 1: This was all in one automation

Issue type=NHOF

Status contains one of (In Progress, With FO)

System Access contains: (Value1, Value2) 

Create a subtask, set assignee to Assignee1, Set the Due date based on another value from a field from the Trigger issue.

 

Issue type=NHOF

Status contains one of (In Progress, With FO) 

System Access contains: (Value3) (tried with equals as well and it didn't work)

Create a subtask, set assignee to Assignee2, Set the Due date based on another value from a field from the Trigger issue.

 

Issue type=NHOF

Status contains one of (In Progress, With FO) 

System Access contains: (Value4) (tried with equals as well and it didn't work)

Create a subtask, set assignee to Assignee3, Set the Due date based on another value from a field from the Trigger issue.

 

Option 2: For this option, I created 3 different automation for the same field.

Auomation1:

Issue type=NHOF

Status contains one of (In Progress, With FO)

System Access contains: (Value1, Value2) 

Create a subtask, set assignee to Assignee1, Set the Due date based on another value from a field from the Trigger issue.

 

Auomation2:

Issue type=NHOF

Status contains one of (In Progress, With FO) 

System Access contains: (Value3) (tried with equals as well and it didn't work)

Create a subtask, set assignee to Assignee2, Set the Due date based on another value from a field from the Trigger issue.

Auomation3:

Issue type=NHOF

Status contains one of (In Progress, With FO) 

System Access contains: (Value4) (tried with equals as well and it didn't work)

Create a subtask, set assignee to Assignee3, and Set the Due date based on another value from a field from the Trigger issue.

 

 

Neither of these options is working for me, unfortunately. I can't figure out what the issue is. I currently have Option 2 up at the moment and if I pick one value from the  System Access field, then it creates 1 subtask, and if I choose all 4 values but bypasses all the automation for this field. Is there any other possible way to get this to work?   

2 answers

1 accepted

0 votes
Answer accepted
Rilwan Ahmed
Community Champion
March 13, 2023

Hi @Has M. ,

Did you try adding JQL condition And Set "Assignee" field value directly ? 

See my screenshot

image.png

Has M. March 13, 2023

Thanks @Rilwan Ahmed

I haven't yet but I will try now. Do you recommend having all the subtasks in one automation? Meaning creating all the subtasks for the same field within the same automation or having them separately as I have it above?

Rilwan Ahmed
Community Champion
March 14, 2023

@Has M. 
You can have it separately. It will be easy for modifying in the future. 

Has M. March 14, 2023

Thanks @Rilwan Ahmed

 

That worked!

Like Rilwan Ahmed likes this
0 votes
Trudy Claspill
Community Champion
March 13, 2023

Hello @Has M. 

Please show the actual details of the automation rule(s) you have configured. We need to see what you are using for a Trigger and how the rules are structures.

Has M. March 13, 2023

I dont have the initial automation where I had all the values for the same field under the same automation but this is what I have right now. I went with this route because I was have the same issue with that approach as well. Below are screenshots how I have the automation set at the moment.

 

2023-03-13 14_18_43-Automation - lever.png2023-03-13 14_18_05-Automation - Jira - concur.png2023-03-13 14_17_22-Automation - Jira - NS.png

Has M. March 13, 2023

Also, thanks for you response

Suggest an answer

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

Atlassian Community Events