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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,460,770
Community Members
 
Community Events
176
Community Groups

Referencing rank via smart values in automation JQL query

I'm working on some Jira automation and want to create a JQL query with smart values that references the rank of the ticket triggering the automation.  We're on Jira Server using Lexorank.  Everything I've tried results in an empty field in the subsequent JQL.  Has anyone found a way to do this? Thanks! 

3 answers

1 vote

Welcome to the Atlassian Community!

Rank is not an easy field to work with - it's unique, doesn't hold human-friendly values, and is more about showing a position in a list (how an issue relates to the ones around it) than a specific value.

I think the first question to ask is "what are you trying to achieve?".  Which probably leads back to "What is your JQL trying to do?".  Not too worried about your JQL or config at this point, we'd like to know what you're thinking, so natural language rather than JQL.

Sure - imagine I have an Epic and that epic has a special entry called a 'cut line'. Everything above the cut line should have a version associated with it (it's in the next release), and everything below it should not (it's not in the release.)

So, what I want to do is have a rule that can check if a give ticket is above/below this cut line ticket.  This isn't too hard to do conceptually - I want a JQL query that checks if there are any tickets in the same epic with a particular label (e.g. 'cut_line') and which are ranked higher than the ticket in question.  Problem is, I can't access the rank!  And that's what brought me here :)

0 votes
John Funk Community Leader Jul 25, 2022

Hi Daniel - Welcome to the Atlassian Community!

What are you trying to achieve with the rank? I really doesn't make a lot of sense in relation to JQL. 

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events