Created issue has no workflow ID

ION Information Systems
Contributor
September 6, 2011

I am writing a plugin to import issues on JIRA from another tracking systems.

I am stucking with this problem, after that an issue is created I got this WARNING in logs:

"... [jira.issue.transitions.TransitionLinkFactory] !!! Issue PKEY-XY has no workflow ID !!!"

Also I do not have any workflow actions displayed on the issues created.

Piece of code:

MutableIssue issue = issueFactory.getIssue();

issue.setProjectId();

...

issueManager.createIssue(reporter, issue);

Should I also need issue.setWorkflowId(Long value)? How to get the Long value?

Thanks.

1 answer

1 accepted

0 votes
Answer accepted
ION Information Systems
Contributor
September 7, 2011

I have sorted this out... I had this line in my code before the createIssue statement:

issue.store();

Removing it I am now able to get the workflow_id field populated.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events