The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

cannot find DefaultChangeHistoryManager in jira-api-5.0

max cai
November 12, 2012

Hi

I want write a report for jira to track the time on diffenert status.

I was able to use DefaultChangeHistoryManager in Jira SDK 4.x and the plugin is working.

but when I try to deploy it to a Jira 5.1 server, I get a lot off missing class exception. So I rewrite the plugin with SDK 5. However, I was unable to find the class in the API library.

here is my code

User remoteUser = action.getRemoteUser();
OfBizDelegator ofBizDelegator = (OfBizDelegator) ComponentManager.getComponentInstanceOfType(OfBizDelegator.class);

DefaultChangeHistoryManager changeManager = new DefaultChangeHistoryManager(ComponentManager.getInstance().getIssueManager(), ofBizDelegator, ComponentManager.getInstance().getPermissionManager(), null);    	
     
searchresults = searchProvider.search(query, remoteUser,PagerFilter.getUnlimitedFilter());

Has anyone a idea for me????

Many thanks in advance

Max

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
Jobin Kuruvilla [Adaptavist]
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 Champions.
November 13, 2012
0 votes
max cai
November 13, 2012

thank you. just wandering why they still have the DefaultChangeHistoryManager in the 5.0 API document.

TAGS
AUG Leaders

Atlassian Community Events