Forums

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

Howto handle project priorityschemes in a plugin

Olivier COQUILLARD October 26, 2021

Hi all,

I actually develop a plugin for Jira 8 where I need to get a specific project PriorityScheme and the associated Priority objects.

My server configuration implements several priority schemes associated to variaous projects and using distinct priority objects.

It works well in the UI while creating or editing an issue, But I do not find the way to get this configuration with SDK objects.

I tried with the com.atlassian.jira.config package, with the fieldLayout and fieldLayoutItems, and some other ways, but I always get the default config, and not the one associated to the project I try to get.

 

is there a way to "simply" manage a project priority config and its values ?

 

Regards.

1 answer

1 accepted

0 votes
Answer accepted
Olivier COQUILLARD January 20, 2022

Well, I reply myself...

 

to get the PriorityScheme for a spécific project I used the com.atlassian.jira.issue.fields.config.manager.PrioritySchemeManager to get the FieldConfigScheme

Then I looked for the FieldConfig representing priorities( => fieldConfig.getFieldId().equalsIgnoreCase("priority") ) like for a customfield

This FieldConfig object contains only the project priorities as shown in the GUI

Suggest an answer

Log in or Sign up to answer