Throwing Error Messages: [You can not transition a null issue.] error during change status

I want to change the status of linked issue from resolved to waiting for triage.

 Reopen is a transition in between them. and I am getting action ID 131 of this transtion. using below code

 

com.opensymphony.workflow.loader.StepDescriptor currentStep = workFlow.getLinkedStep(link.destinationObject.getStatus());
// com.opensymphony.workflow.loader.StepDescriptor currentStep = workFlow.getLinkedStatusObjects();
IssueService issueService = ComponentAccessor.getIssueService();
List<ActionDescriptor> actions = currentStep.getActions();

log.error "Size"+actions.size()
for (ActionDescriptor action: actions)
{
log.error "Action name:" +action.getName()
if (action.getName().equals("Reopen"))
{
int a=action.getId();

IssueInputParameters issueInputParameters = new IssueInputParametersImpl();

log.error "Action ID"+ a +"User " +appUser+""+id+""+issueInputParameters;
TransitionValidationResult transitionValidationResult= issueService.validateTransition(appUser,id,10005, issueService.newIssueInputParameters());
if (transitionValidationResult.isValid()) {
IssueResult transitionResult = issueService.transition(appUser, transitionValidationResult);
}
else{

ErrorCollection errorCollection = transitionValidationResult.getErrorCollection();

log.error "Result Check"+errorCollection
// showTransitionErrors(transitionValidationResult);
}

 

but still getting TransitionValidationResult is Invalid. Why it is so? where is the problem.

1 answer

1 accepted

0 vote

You don't appear to be giving it an issue to transtion.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published 5 hours ago in Agile

What is ChatOps? A guide to its evolution, adoption, and significance

I am the product of AIM. I can hear that door swinging open and closed in my mind with absolute fidelity. I’d recognize that ding anywhere. At 15, as I typed away into AOL IM, I never imagined that ...

20 views 1 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you