How to add issue type from plugin?

Mateusz Szafarz September 2, 2013

Hi, I would like to know how to create a new issue type from my Jira plugin. I'm on the begining of my adventure with Jira plugins development so I will appreciate any help.

4 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
Chaithra N
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.
September 2, 2013

IssueTypeManager itm = (IssueTypeManager) JiraUtils.loadComponent(IssueTypeManager.class);

itm.createIssueType(name, description, iconUrl);

Above code should work

maki maki February 7, 2014

Where do you get JiraUtils from?

MattS
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.
March 28, 2017

To use the new issue type you will need to add it to the appropriate issue type scheme

1 vote
RambanamP
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.
September 2, 2013
Mateusz Szafarz September 2, 2013

Thank you for help.

0 votes
maki maki February 10, 2014

Hi Mateusz, were you successful in this? I am trying to do the same think but unsuccessfuly so far. First I am not able to import com.atlassian.jira.util.JiraUtils. I have uncomment the jira-core dependency in my pom file and rebuilt, but still not able to import it. One more question, did you need to update the descriptor file or just adding java class to handle this was enough. I would appreciate if you would share complete code where you adding new issue type. Thank you in advance.

0 votes
JamieA
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.
September 2, 2013

com.atlassian.jira.config.ConstantsManager#insertIssueType

JamieA
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.
September 2, 2013

Ignore me, the other method is better.

maki maki February 11, 2014

When I include this code in my class and issue atlas-run command I get error that IssueTypeManager is not instantiable. Any idea?

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events