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.
Community moderators have prevented the ability to post new answers.
IssueTypeManager itm = (IssueTypeManager) JiraUtils.loadComponent(IssueTypeManager.class);
itm.createIssueType(name, description, iconUrl);
Above code should work
To use the new issue type you will need to add it to the appropriate issue type scheme
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you can create by using createIssueType method from IssuetypeManger
check this
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
com.atlassian.jira.config.ConstantsManager#insertIssueType
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ignore me, the other method is better.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.