Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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,551,664
Community Members
 
Community Events
184
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

2 votes
Martin Bayer _MoroSystems_ s_r_o__
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Sep 02, 2022

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 _Relational_ 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
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Sep 02, 2022

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 _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Sep 02, 2022

Hi @Chris Robbins and welcome to the community,

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

Alex Koxaras _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Sep 02, 2022

Suggest an answer

Log in or Sign up to answer