Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,367,573
Community Members
 
Community Events
168
Community Groups

How to clear or empty the Resolution field using JSON

Hi there,

Using automation, I need to set the Resolution field back to Unresolved.  The problem is that 'Unresolved' is not listed in the drop-down when trying to do it through the Edit Issue selection.  So I have to use JSON.  I've tried a few different things and nothing has worked so far.  This is what I've tried so far:

{
"fields": {
"resolution": { "id": null }
}
}

{
"fields": {
"resolution": null
}
}

{
"fields": {
"resolution": ["Unresolved"]
}
}

3 answers

Hi @Chris Robbins , welcome on the community. I'd suggest you to use the workflow's postfunction to set or clear the resolution (as @Alex Koxaras suggests), but if your use case requires to use the Automation, you need to do it using following setup. Let me know if you need more help :)

Screen Shot 2022-09-02 at 10.57.21.png

0 votes

This can't work because the REST API, and Automation works the same way that the UI does.

If you put the resolution on an edit screen, you don't get an "unresolved" or "none" option, and the system will default it to a value, so you have no option but to set it to something.

You can't blank out a resolution by editing an issue.  You have to do it by transitioning an issue to an open status and using a post-function to clear the resolution, exactly as @Martin Bayer _MoroSystems_ s_r_o__ says.

0 votes
Alex Koxaras Community Leader Sep 02, 2022

Hi @Chris Robbins and welcome to the community,

I would expect that ""resolution": null" would work. What response are you getting?

Suggest an answer

Log in or Sign up to answer