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

Comparing issue fields just got easier in Automation for Jira Cloud

Hey there, Atlassian Community! You might have heard of our no-code automation engine in Jira.

We just shipped an update to one of its most popular features, the Issue fields condition. For the project admins out there, we think this will be a handy tool for day-to-day issue wrangling. Let’s dive in and take a look…

 

Hold up, what’s the Issue fields condition?

Automation rules in Jira consist of 3 types of components you can configure:

  • Trigger - the event that will make your rule start

  • Conditions - requirements that have to be met, for your rule to run

  • Actions - the things your rule will do, if it gets triggered and meets all the conditions

What we’re talking about here is one of the conditions - the Issue fields condition. This condition checks whether an issue’s field meets a certain criteria.

 

Got it - so what’s new with the Issue fields condition?

Before, there were limitations around what you could do with the condition. It allowed you to select a field, and enter a specific value - that's it. So you could check for things like:

  • Status is Blocked

  • Issue type is Story or Epic

issue-fields-condition-before.png

Now, you can compare an issue’s field with not just a value, but another field. This means you can now check for things like:

  • Label is equal to Version

  • Fix version contains any of Affects Version

And - here’s where we think it gets really cool! - you can also compare an issue’s field to another issue’s field. So you can check for things like:

  • Assignee equals Reporter from the parent task

  • Story Points is greater than Story Points from the Epic.

issue-fields-condition-now.png

Alright, so how could I use this in my project?

Let’s look at an example scenario. Imagine your team recently started estimating work using story points. You know a Story or Task can’t have more story points than its Epic, so you decide to create an automation rule to check for this. Here's how that would work...

 

Step 1 - Trigger

All rules start with a trigger. Let’s trigger this rule when the Story Points field gets updated:

Step 1.png

Step 2 - Conditions

Next, we'll add our Issue fields condition. Here, we’ll check if the Story Points on the issue is greater than the Story Points on its Epic, since that’s what we want to avoid.

Step 2.png

Step 3 - Actions

And finally, let’s have the rule add a comment to the issue whenever this happens, so that the person responsible knows to look at it. We can do that with the Comment on issue action.
Step 3.png

And there you go! This is one way you could use the Issue fields condition, but there are lots of things you can do with it. We’ve touched on other potential uses throughout this article, but feel free to come up with your own.

 

Are there other ways to do this?

Actually, there is. Before we added this functionality, you could accomplish the same thing using the Advanced compare condition. We won’t go into how that works here, but suffice it to say, it’s a lot more complex! Take a look:

advanced-compare-story-points.png

We recommend sticking to the Issue fields condition where possible, and only going with the Advanced compare condition if you really need more complex functionality.

 

Where can I learn more?

If you’re excited to jump in and start creating your own rules, head to Project settings > Automation to create project rules or Jira settings > System > Automation to create rules for your entire site

If you’re keen to learn more, check out our getting started guide or our documentation:

3 comments

Nice one. 
I just miss more doccumentantio available about smart values.

i.e the docs show how to get an smart value, but it seem out of date, and so one.

Like Bill Sheboy likes this
Taranjeet Singh Community Leader May 07, 2020

Nice information, and nice article @Kevin Bui !

Thanks for the information and article, @Kevin Bui 

Comparison of attributes (fields) of an issue with automation rules definitely helps fill a gap in JQL functionality.  A logical next step might be allowing such comparisons to be available as user-defined triggers.

Best regards,

Bill

Comment

Log in or Sign up to comment
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,022 views 8 28
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