Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Don't have class in my jira-api.jar

Влад Демидик July 4, 2018

Hello

 

I develop jira plugin and faced one problem i need to load all statuses from system and link them with statuses from another system. 

I found class for receiving statuses from jira but i didn't have this one in my jar which was downloaded through maven.

image.png

May be someone know  how to fix it?

 

Thanks!

 

2 answers

1 accepted

0 votes
Answer accepted
Alexey Matveev
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.
July 4, 2018

Hello,

Try to uncomment in the pom.xml

<dependency>
<groupId>com.atlassian.jira</groupId>
<artifactId>jira-core</artifactId>
<version>${jira.version}</version>
<scope>provided</scope>
</dependency>
Alexey Matveev
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.
July 4, 2018

You can use ConstantsManager.getStatuses()

https://docs.atlassian.com/software/jira/docs/api/7.1.1/com/atlassian/jira/config/ConstantsManager.html

If my answer helped you, kindly mark as accepted.

Alexey Matveev
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.
July 4, 2018

You can either inject the class or use ComponentAccessor

Влад Демидик July 5, 2018

I used ComponentAccessor and it works, thanks for the help

0 votes
Влад Демидик July 4, 2018

That helped, thanks.

Just now noticed that there is a huge constructor, mb is another way to get all statuses from jira?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events