Community moderators have prevented the ability to post new answers.
Creating and Editing an Issue :)
It seems like the correct method. Does getIssueFactory() returns null? Is it correctly instantiated?
Then i'm doing
issueObject.setProjectId(new Long(10000));
issueObject.setIssueTypeId("Bug");
issueObject.setSummary("summary");
ComponentAccessor.getIssueManager().createIssueObject(
ComponentAccessor.getJiraAuthenticationContext().getLoggedInUser(), issueObject);
And returns com.atlassian.jira.exception.CreateException: com.atlassian.jira.workflow.WorkflowException
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Um, you can't "get" an issue until it exists, so I'm not sure where your code came from.
Anyway, last time I wrote something to create an issue from scratch, I based it on the code from https://developer.atlassian.com/display/JIRADEV/Plugin+Tutorial+-+JIRA+Issue+CRUD+and+Search - there may be better pages or tutorials, but I quite like that one because it covers create, edit and find in one place.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Um, not in the document I posted. What are you reading? Also, in nearly two years, stuff changes. Why are you posting here? What are you actually stuck on?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In the JIRA 5.1 API documentation: https://docs.atlassian.com/jira/5.1/com/atlassian/jira/issue/IssueFactory.html#getIssue()
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ah, yes, but it doesn't quite create a new issue, just an object to represent one.
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.