Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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

1 vote
Answer accepted
Callum Carlile Community Leader Jan 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!

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

Like # people like this
Callum Carlile Community Leader Jan 27, 2021

No worries, glad I could help :)

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Jira Software

Presenting the "Best of 2020" Jira Software roundup!

Catch up with Atlassian Product Managers in our 2020 Demo Den round-up! From Advanced Roadmaps to Code in Jira to Next-Gen Workflows, check out the videos below to help up-level your work in the new ...

7,203 views 8 29
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you