Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Set Rank with Scriptrunner

Alexander Raymukanov
Contributor
April 5, 2021

Good day,

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.

 

Regards,

Alexander 

1 answer

Suggest an answer

Log in or Sign up to answer
1 vote
serge calderara
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
April 29, 2020

@srikanth kocherlakota , I have the same problem when tetiing HTTP b uilder in script console, it says body, response, header are undeclared .

Did you find the problem?

regards

TAGS
AUG Leaders

Atlassian Community Events