com.atlassian.jira.plugins.importer.external.beans.ExternalProject
Using the above Class method called getIssues()- I am trying to access the existing issues in my local jira instance but it returns a null value even if the project has Issues. What can be the possible issue?
I am getting the following error:
[INFO] [talledLocalContainer] 2020-07-01 03:06:05,752 JiraTaskExectionThread-5 INFO admin 185x22132x1 1lfm2tj 0:0:0:0:0:0:0:1 /secure/admin/ImporterLogsPage%21import.jspa [c.a.j.p.i.i.importer.impl.AbstractDataImporter$1Thread[http-nio-2990-exec-10,5,main]] Only new items will be imported
[INFO] [talledLocalContainer] External ProjectExternalProject{id='null', key='XTP', externalName='project', name='XYZ Test Project'}
[INFO] [talledLocalContainer] exisiting issuesnull
[INFO] [talledLocalContainer] 2020-07-01 03:06:05,757 JiraTaskExectionThread-5 INFO admin 185x22132x1 1lfm2tj 0:0:0:0:0:0:0:1 /secure/admin/ImporterLogsPage%21import.jspa [c.a.j.p.i.i.importer.impl.AbstractDataImporter$1Thread[http-nio-2990-exec-10,5,main]] ------------------------------
[INFO] [talledLocalContainer] 2020-07-01 03:06:05,757 JiraTaskExectionThread-5 INFO admin 185x22132x1 1lfm2tj 0:0:0:0:0:0:0:1 /secure/admin/ImporterLogsPage%21import.jspa [c.a.j.p.i.i.importer.impl.AbstractDataImporter$1Thread[http-nio-2990-exec-10,5,main]] Finished Importing : Issues
[INFO] [talledLocalContainer] 2020-07-01 03:06:06,496 JiraTaskExectionThread-5 INFO admin 185x22132x1 1lfm2tj 0:0:0:0:0:0:0:1 /secure/admin/ImporterLogsPage%21import.jspa [c.a.j.p.i.i.importer.impl.AbstractDataImporter$1Thread[http-nio-2990-exec-10,5,main]] ------------------------------
[INFO] [talledLocalContainer] 2020-07-01 03:06:06,496 JiraTaskExectionThread-5 ERROR admin 185x22132x1 1lfm2tj 0:0:0:0:0:0:0:1 /secure/admin/ImporterLogsPage%21import.jspa [c.a.j.p.i.i.importer.impl.AbstractDataImporter$1Thread[http-nio-2990-exec-10,5,main]] Unexpected failure occurred. Importer will stop immediately. Data may be in an unstable state
[INFO] [talledLocalContainer] java.lang.NullPointerException
[INFO] [talledLocalContainer] at com.tadigital.jira.plugin.TACsvDataBean$2.apply(TACsvDataBean.java:99)
[INFO] [talledLocalContainer] at com.tadigital.jira.plugin.TACsvDataBean$2.apply(TACsvDataBean.java:1)
Here is the code snippet of data bean class :
@Override
public Set<ExternalProject> getAllProjects(ImportLogger log) {
final ExternalProject project = new ExternalProject(configBean.getProjectName("project"),
configBean.getProjectKey("project"));
project.setExternalName("project");
return Sets.newHashSet(project);
}
@Override
public Iterator<ExternalIssue> getIssuesIterator(ExternalProject externalProject, ImportLogger importLogger) {
return Iterables.transform(csvClient.getInternalIssues(), new Function<Issue, ExternalIssue>() {
@Override
public ExternalIssue apply(Issue from) {
final ExternalIssue externalIssue = new ExternalIssue();
List<ExternalIssue> getExistingIssues = externalProject.getIssues();
///
return externalIssue;
}
}).iterator();
}
Hello @Aditya Sharma ,
Please notice that this is not the best place to get help on development related topics.
In case of no answer in here please refer to the resources listed in: https://developer.atlassian.com/resources.
Specifically:
Cheers,
Dario
Hi @Dario B
I will surely keep that in mind. Actually I am new to Jira and Jira related development. I usually don't approach like this but I was really stuck. Anyway, thanks for the heads up. I will refer to the links you have mentioned.
Happy learning!
Thanks and Regards,
Aditya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You are very welcome @Aditya Sharma . Good luck with your project! :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.