Jira issue transition to resolve working fine without resolution.

I am trying to move an issue from open to resolve where default resolution is cleared out. When the same operation is done from JIRA UI, user needs to select some resolution as there is no default resolution. But when it is done via REST api, issue is getting updated to resolve without any resolution.

Is it a bug in Jira?


1 answer

0 votes

When you are doing it in the UI, it is expecting you to pick a resolution. When you are doing it via, you have to set the resolution in the code.

If you want the transition to fail when there is no resolution sent in the REST API call, make sure you add a workflow validator that checks for resolution value.

But when resolution is mandatory in UI then the same behavior should reflect in rest api as well without workflow validator. Since we are utilizing Jira rest api in our product, our customer has to explicitly make sure that there is a workflow validator (which is not required in UI) to make it throw an error with our product.

It works fine with jira SOAP.

Did you mark resolution as mandatory? There is no way to do that in workflow screen unless you add a workflow validator. Once resolution is on screen, user will have to select one or the other but that is different from making it mandatory. When you add a validator, REST will respect that.

I got the solution for the way I am handling trasitions. Before firing a transition POST request I get all the available transition for an issue by using GET request. In GET request I can expand on fields available for transition and in the response I get whether the field is required or not. Why I chose this way is because I don't want user to change anything in Jira.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,290 views 5 10
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