Not able to create custom issue type from plugin

I am trying to create custom issue type from my plugin, but have been unsuccessful so far. I have followed example outlined here, but when I do -atlas-run I get error that IssueTypeManager is not instantiable. I am completly blockedon my plugin development due to this as this is the first thing that needs to happen by the design, so your help is very much appreciated. If you need any more info than this please let me know. The code is exactly like this:

package com.myjiraplugins;
import com.atlassian.jira.config.IssueTypeManager;
import com.atlassian.jira.util.JiraUtils;
import com.atlassian.sal.api.ApplicationProperties;

public class MyPluginComponentImpl implements MyPluginComponent {
private final ApplicationProperties applicationProperties;

public MyPluginComponentImpl(ApplicationProperties applicationProperties) { this.applicationProperties = applicationProperties;

IssueTypeManager itm = (IssueTypeManager) JiraUtils.loadComponent(IssueTypeManager.class); itm.createIssueType("mytype", "custom issue type", "/images/icons/issuetypes/genericissue.png");
public String getName() { if(null != applicationProperties) {

return "myComponent:" + applicationProperties.getDisplayName();
return "myComponent";

3 answers


Can you try to use for example:




instead of using the Jirautils to load the class?


If we are talking about the same things, it's also explained here:


Thank you Christoffer. It helped me, I was able to create custom type. Though, I was getting error that ComponentAccessor is not initialized, even after Ihave made object of it and assigned null value to it. So, I have disabled unit test and everything was fine then. Thanks again.


I don't think you should try to initiate the ComponentAccessor. You can use it directly like this:

IssueTypeManager itm = ComponentAccessor.getComponent(IssueTypeManager.class);

But prefered way of doing it is to simply specify in the constructor that you will need this object:

public MyPluginComponentImpl(ApplicationProperties applicationProperties, IssueTypeManager itm) { this.applicationProperties = applicationProperties;

Feel free to mark any of my answers as best answers to mark this question as solved if it helped you with your problems :)



Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,605 views 18 21
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you