Forums

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

I need to move bugs to the top of the backlog after creating them using ScriptRunner

Nick
Contributor
June 7, 2023

Hi, community,


Maybe some of you have already had a similar task - need a script that moves issues with the type "defect" to the top of the backlog using ScriptRunner after creation (rankService).


One workflow that five projects use, there should be a ScriptRunner-based post-function at the issue creation step that will move all new defects to the top of the backlog. The script should only work for two projects out of five - "A" and "B", i.e., in the code should, be a specified JQL query (as I understand it).


I will be grateful for help if someone has already done such things. Unfortunately, the answers I found in the community didn't work - I need a working code.

1 answer

0 votes
Evgenii
Community Champion
June 7, 2023

Found similar question with answer. Maybe it will help you:

https://community.atlassian.com/t5/Marketplace-Apps-Integrations/Change-issue-Rank-using-scriptrunner/qaq-p/1395305

UPD.

But, after studying and checking, solution is not working. Needed class don't exist in my instance.

Nick
Contributor
June 8, 2023

The same thing.

Suggest an answer

Log in or Sign up to answer