Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

Advanced compare condition Edited

I am trying to Automate one scenario where I need to use 

Advanced compare condition.

Now in this the field that I need to compare is Custom-Cascading field. 

 

It has like name as "Stage" with drop down as 

01-Contract 

                Approved

                Rejected

Now what I want is to compare if any user updates Stage field as Approved 

In JIRA search, this field value is displayed as 01-Contract - Approved 

What I am not able to understand is how to write it in Advanced compare condition 

{{issue.Stage.??

Stage.png

1 answer

1 accepted

1 vote
Answer accepted

Hi Peyush,

Try {{issue.Stage}} = Approved

And if that doesn't work, give this a try:

{{issue.Stage.child.value}} = Approved

Hi John,

 

Value of field Stage has 2 drop downs: 

01-Stage

02-QA

03-Build

with further if you eg select 01-Stage, it will show another set of values as: 

A

B

C

D

When you check for JIRA in search or export report, this whole field value will be displayed as:

01-Stage - A

01-Stage - B

etc.

 

Should I still use just as you suggested? 

John Funk Community Leader May 17, 2021

If Approved is not in the list for any other first level option, it might work. 

Otherwise, you can add two Advance Compare conditions - one to check the parent.value and then one to check the child.value.

tried the way you mentioned 

with first value as {{issue.Stage.parent.value}}

and Second value as {{issue.Stage.parent.value}} = 04-QA

it doesnt work, am I doing anything wrong? 

John Funk Community Leader May 17, 2021

Can you share a screenshot of your latest rule and the audit log where it didn't work? 

John Funk Community Leader May 17, 2021

Actually, you shouldn't be using the advanced compare because they are not really two different fields - they are one field. 

Try changing the compare to just a JQL condition with {{issue.Stage}} = Approved

hm so my Problem Statement is I want that if anybody changes this Stage field to 01-Contract in any JIRA instance, ENgineering JIRA should automatically get updated and so I need to put a checkpoint or condition to trigger this. and If I use this as a trigger point, I can go and take action on Linked issues of this JIRA

If I use JQL query, it will be difficult to use automation to trigger events on linked issues but I will try that way as well Stage_1.pngStage_2.png

with the screenshots I have shared, condition passes in all cases 

ok using your suggestion of using JQL and putting in multiple conditions, I have been able to find a workaround for this 

Like John Funk likes this
John Funk Community Leader May 17, 2021

Great! Glad it is working for you now!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
Community showcase
Published in Jira Service Management

JSM June Challenge #2: Share how your business teams became ITSM rockstars

For JSM June Challenge #2, share how your non-technical teams like HR, legal, marketing, finance, and beyond started using Jira Service Management! Tell us: Did they ask to start using it or...

171 views 6 7
Read article

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