I have requirement to change the issue status from indefination to Ready for Developement for one of the business use case.
I have written the custom plugin but not able to find the API to update the issue status.
Here is the code:
MutableIssue mutableIssue = issueManager.getIssueByCurrentKey(issueParent.getKey());
mutableIssue.setStatusObject(cacheStatus);
//mutableIssue.setStatusId("10064");
issueManager.updateIssue(user, mutableIssue, EventDispatchOption.DO_NOT_DISPATCH, false);
setReindex(mutableIssue);
issueParent.store();
Please help me if any one aware of.
Community moderators have prevented the ability to post new answers.
Thanks lot. I already use the workflowutils but forgot to use the method progress()
@KiranK Please can you explain how to update Status using java API?
I have Status name and Status ID.Then how to get Transition id using these.i am using "workflowTransitionUtil" to update Transition.but before i need Transition Id to update Status
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No. You cannot just "set" the status of an issue. It's NOT a field, it's an indicator of where an issue is in the workflow.
You must use workflow transitions to move the issue through the workflow. Take your current issue, look at its status, work out which transition gets you to the target status and move it on.
Use issueservice or workflowutils to push the transition
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm not sure what this has to do with my answer here. Plus it's from 4 years ago?
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.