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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 30, 2018 in Marketplace Apps

Three tips for boosting your board's efficiency with Story Maps

Trello is one of the most effective tools for driving your sprints. It's customizable for every Agile team and product owners and Scrum masters (SM) love it. However, Agile teams often struggle with:...

822 views 2 9
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