It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Issue status is not changed after successful transition via Java API

Tolga Tunca Jan 31, 2017


I am facing a weird problem with JIRA Java API. Below is the snippet code.

I make a transition which changes issue's status from WAITING FOR SUPPORT to RESOLVED with resolution DONE. 

IssueInputParameters issueInputParameters = issueService.newIssueInputParameters();
issueInputParameters.setRetainExistingValuesWhenParameterNotProvided(true, true);
IssueService.TransitionValidationResult transitionResult = issueService.validateTransition(user, issue.getId(), action.getId(), issueInputParameters);
IssueResult result = issueService.transition(user, transitionResult);
//result.isValid == true

However, as seen in the screenshot below there is a successful changelog regarding the status change but Issue's Status does not. Issue's status is WAITING FOR SUPPORT, but changelog says that it should have changed to RESOLVED.

jira screenshot.png

This code was working well before.

Thanks in advance for any help.


2 answers

0 votes
Nic Brough [Adaptavist] Community Leader Feb 01, 2017

You can't run a transition inside another one - the containing transition isn't complete, so the invoked one doesn't run properly as the current status is in flux.

Tolga Tunca Feb 01, 2017

Transition is triggered by another issue's transition.

There are two issues. One is Service Desk issue and another one is an issue of any project which is linked Service Desk issue. When linked issue is resolved, I want to have the Service Desk issue resolved too by programmatically.

(PS: I can not resolve Service Desk issue with Automation because I want to wait for all linked issues to be resolved. And when last linked issues is resolved, main Service Desk isssue needs to be resolved. )

Sorry for the lack of information.

0 votes
Guilherme Nogueira Feb 01, 2017

Why don't you put a postfunction to change resolution value during transition to waiting for support to done?

With that, your script must to only transition issue

Tolga Tunca Feb 01, 2017

Yep that's an alternative, it just needs configuration for each Service Desk project. Code was working before and I can not figure out why it is not working now.

Guilherme Nogueira Feb 01, 2017

Well your code looks ok, that's why I suggested this alternative. 

Tolga Tunca Feb 01, 2017

 appreciate your help. Thank you.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted in Statuspage

⭐️Would you recommend Statuspage? Leave a (honest!) review. ⭐️

Hi Community friends, We're working on sourcing more reviews on Capterra – a popular software review site –  to help teams like yours make more informed decisions when choosing an inc...

82 views 3 5
Join discussion

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you