I have following user case:
I have Structure with 2 levels Assignee->Issue sorted by Rank. So users make their tasks from first, than second ...
I want to add following functionality. If some user create new urgent issue and set in create issue window special check box ("urgent task"), then new issue will be placed before actual first issue in Structure for the same assignee. So I need to set Rank of new issue lower than that first issue.
So Scriptrunner script looks to have following logic:
- read Structure
- find first issue for user whom assigned new issue and read its Rank
-set Rank to new issue lower
But I can't find functions in Java API or examples in Adaptavist library , how to read and set Rank. Please help.
If you know how to make the same other way, it will be also fine.
You didn't find any documentation to set Rank because there is no way to do so.
Rank is a system field that it's actual value is encrypted and not human read.
I know in the tickets in the UI you see numbers for Rank, like : 1, 2, 5, 9...
But behind the scenes, each number will be some complex value like "alskdjaslkfjlsdjkfsd" so you can't create the actual Rank value the system expect to.
Hi All! We’re excited to share the launch of an announcement banner that lets Jira site administrators communicate directly to their users across their Jira Cloud instance. ...
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