Forums

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

Script for Automated Priority Scheme

Ekaterina Smykova
Contributor
December 2, 2020

Hi Community, 

 

Is there any script for ScriptRunner(as example)to assign automatically one Priority Scheme to many projects? 

 

Regards,

Katja 

1 answer

0 votes
Sam Hall
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 Leaders.
December 5, 2020

Hi Ekaterina,

Which version of Jira do you have?

Since 7.7, the JIra REST API has a resource for associating a priority scheme with a project

https://confluence.atlassian.com/jirasoftware/jira-software-7-7-x-release-notes-941594462.html#JIRASoftware7.7.xreleasenotes-priorities_api

https://docs.atlassian.com/software/jira/docs/api/REST/8.13.1/#api/2/project/{projectKeyOrId}/priorityscheme-assignPriorityScheme

That could be a place to start. It would be possible to write a script using a language of your choice to use that 'assign priority scheme' resource to set the priority scheme for each project key in a list projects.

Sam

Ekaterina Smykova
Contributor
December 9, 2020

Hi Sam, 

 

We have 8.5.3, Data Center version. 

Problem is, that i am the only one tech resource in our team and don't have time to write script with supporting more than 10000 users :( 

But apparently, have to try :) 

Regards,

Katja 

Suggest an answer

Log in or Sign up to answer