You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
We have a requirement to sort the displayed issues on a multiple issue picker field.
I've attempted adding the sort the customised JQL but still sorts be created / key with the newest at the top.
We are wanting to sort the displayed selectable issues on a custom field which contains numbers, so that the highest number is as at the top.
we already have the custom fields displayed.
renderOptionHtml = { String displayValue, Issue issue, Closure<String> highlight ->
OutputFormatter.markupBuilder {
i('Service Rank: ' + issue.getCustomFieldValue(OurFields.serviceRankField))
mkp.yield(' - ')
mkp.yieldUnescaped(displayValue)
}
}
I would think you should be able to simply include "order by" in the JQL configuration of your issue picker field.
But I tested it and it doesn't work.
I don't think any of the customization options will let you affect the supplied list other than the JQL.
So you might need to contact adaptavist support to suggest this as a new feature (or perhaps a bug, I don't know why the order by clause in the JQL would be ignored).
Yes that was my first thought, also failed for me.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Could you please specify what version of Jira and ScriptRunner you are currently using?
Thank you and Kind regards,
Ram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Data Centre Installation
Jira Software 9.4.6
Jira Service Management 5.4.6
ScriptRunner: Installed version: 8.4.0
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.