Here is my code for IssueLinking in jira4.2...
ComponentManager com = ComponentManager.getInstance();
IssueLinkManager issueLinkManager = com.getIssueLinkManager();//returns null pointer exception
JiraAuthenticationContext authenticationContext = com.getJiraAuthenticationContext();
issueLinkManager.createIssueLink(Long.parseLong(issue.getId()),Long.parseLong(issue.getId()),10010L,1L,authenticationContext.getUser());
But, when i run this,i get NullPointerException at getIssueLinkManager()...
Please tell me how to solve this and link 2 existing issues...
Community moderators have prevented the ability to post new answers.
Are you sure the null pointer is thrown there? That line looks okay to me! You can may be add some debug statements to be sure.
The exception is thrown in that line only...
I donot know how to proceed.Can u tell me how to perform IssueLinking and what are the necessary jar files for it.
Thank you in advance
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you are on the latest version of JIRA, use this instead: IssueLinkManager issueLinkManager = ComponentAccessor.getIssueLinkManager()
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.