ComponentManager isn't available

I'm developing an Issue Tab plugin and I'd like to use the ComponentManager but for the life of me I can't figure out which jar it's in (com.atlassian.jira.ComponentManager) and why it isn't in the jars that the setup process setup for me.

Help! :)

2 answers

1 accepted

5 votes

You should use ComponentAccessor: https://developer.atlassian.com/static/javadoc/jira/5.0/reference/com/atlassian/jira/component/ComponentAccessor.html

which is @PublicApi. For ComponentManager you will need to uncomment the jira-core reference from the pom.

That got it. Thanks Jamie!

0 vote

Which version of JIRA is it? From JIRA5, use jira-api in the dependencies in your pom.xml. For earlier versions, use atlassian-jira jar!

It's JIRA 5, sorry for the ommission.

I'll give that a shot.

If you do, mvn eclipse:clean eclipse:eclipse, it will recreate the project

Looks like I already have it:

<dependency>
            <groupId>com.atlassian.jira</groupId>
            <artifactId>jira-api</artifactId>
            <version>${jira.version}</version>
            <scope>provided</scope>
        </dependency>

I'll check around to see if I can find the JAR and why Eclipse can't see it.

Excellent. I'm running that now.

*waits a while* :)

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

73 views 0 5
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