I am writing a small piece of Java code to extract weekly information from JIRA for my colleagues. The following example was very useful to get started: http://stackoverflow.com/questions/23472620/worklog-entries-of-an-jira-user-needs-to-be-fetched
I have found the necessary JAR files listed, but I don't know where to get the ComponentAccessor class mentioned in the proposed solution. Can you please tell me which jar to download and where I can get it?
Thanks a lot in advance for your time!
Community moderators have prevented the ability to post new answers.
I have finally found it in the atlassian-jira-6.0-m05.jar file.
But I am stopped by this exception which I don't know how to fix : Exception in thread "main" java.lang.IllegalStateException: ComponentAccessor has not been initialised.
What should I do to initialize the ComponentAccessor?
I have the same exception please if you resolved it , tell me what should i do !!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am also getting "package com.atlassian.jira.component does not exist" during my Maven build, even though i've already updated my pom.xml to include the snippet shown at: https://maven-repository.com/artifact/com.atlassian.jira/jira-components/6.3.1 Please let me know what i need to do to resolve this. Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
fyi... Someone told me to add: <dependency> <groupId>com.atlassian.jira</groupId> <artifactId>jira-api</artifactId> <version>YOUR_JIRA_VERSION_NUMBER</version> <scope>provided</scope> </dependency> to my pom.xml file. This resolved the "package com.atlassian.jira.component does not exist" error.
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.