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,553,483
Community Members
 
Community Events
184
Community Groups

JQL filter issue with custom field

Edited

Hi All,

 

I have created a custom scripted field that outputs number values. the field is called rating. I created a JQL query to order the issues based on the value of this field. "project = RT1001 ORDER BY Rating DESC", this works except for my rating values that are double digits. Single digit values are being ordered highest to lowest, but my highest value "16" is ordered at the bottom with the "1" values. How can i fix this?

2 answers

2 accepted

2 votes
Answer accepted
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 05, 2023

How have you created the scripted field?

If it's with Scriptrunner and used the scripted field functions from that, then can you check that you have set it up with a number template in Scriptrunner, and changed the "searcher" to either exact number or number range.

@Nic Brough -Adaptavist- that solved it, Thanks again for the help!

 

Cheers,

Sasha

2 votes
Answer accepted
Peter Van de Voorde
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 05, 2023

Hi @Sasha Pilote ,

Did you use a Numbers Field for your custom field or a Text Field?
This looks like it's behaving like a text field and sorting the numbers alphabetically.

Cheers,
Peter

Hi @Peter Van de Voorde ,

 

It is a numbers field for the custom field. It is scripted to take values from 2 other number fields and multiply them to get its value. Is there a way to adjust my filter to search by its actual numerical value?

 

Thanks for the help,

Sasha

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events