Forums

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

How can I use the parent of a cascading field as a condition in project automation?

Laura Bennett
Contributor
January 27, 2021

Hey all, hoping someone can help me with my problem.

I've been asked to set up a new Jira issue type with some automation.
The automation process should work like so:

On create screen the reporter selects from a cascading custom field called "IT Solution". From the parent they can choose either "HW" or "VM" then from the child they can choose the desired OS. When the issue is created the automation checks the value of the "IT Solution" field and depending on whether "HW" or "VW" has been selected creates a linked task to the responsible team. 

The automation should in theory be: WHEN issue created, IF "IT Solution Parent" = "HW", THEN create linked task.

I have the options to try doing something with Scriptrunner or a postfunction with JSU or JMWE. I'm hoping it's a simple solution and I'm just too new to this to see it! 

1 answer

1 accepted

4 votes
Answer accepted
Callum Carlile _Automation Consultants_
Community Champion
January 27, 2021

Hi @Laura Bennett ,

You will need to use the Advanced Compare condition as seen here. Just replace the custom field ID with the ID o your custom field. This finds the value of the parent cascading option - if you want the value of the child, then you will need to use {{issue.customfield_id.child.value}}compare.PNG

This covers the parent condition part. To set up the rest of the rule, you will use the Create Issues action, and under the 'Choose fields to edit', you will select Linked Issues, then choose the issue type and make sure the created task is being linked to the Triggering issue

create.PNG

Hope this helps!

Laura Bennett
Contributor
January 27, 2021

This worked a dream, thanks for the help, I was definitely over thinking this! 

Like # people like this
Callum Carlile _Automation Consultants_
Community Champion
January 27, 2021

No worries, glad I could help :)

Suggest an answer

Log in or Sign up to answer