Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Clear Resolution on a Reopen transition via Behaviours

Veronika April 18, 2022

Hi community,

In order to avoid strikethrough issues in Jira I need to add a post-function for clearing Resolution field on Reopen transition to each workflow.
I have dozens of workflows so seeking for a general solution - may be via Behaviors (Script Runner)? I need to clear Resolution field on every Reopen transition throughout all projects & workflows. Will be happy to get tips. Thank you!

2 answers

2 accepted

2 votes
Answer accepted
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 18, 2022

Behaviours can't do that.

Behaviours adjusts the behaviour of fields on-screen.  So you have two problems with that idea.

  • You should never have the resolution field on a create or edit field where Behaviours could be used to alter how it works
  • Even if you do, and you get Behaviours to blank out the resolution selection, Jira will not change it on commit because the field always gets set when an edit happens

Your post-function solution is what you should be doing, forget Behaviours.

Veronika April 25, 2022

Thank you, understood. Will fix.

1 vote
Answer accepted
Filipi Lima
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 18, 2022

As Nic said, post-functions is the way to go.

On the transitions that re-open your tickets, add the post-function to update Issue Field -> Resolution -> Set it to None.

  • This is not an actual resolution called None - it's how Jira refers to an empty resolution.

The above will clear the resolution.

image.png

Veronika April 25, 2022

Thank you! Got this.

Like Filipi Lima likes this

Suggest an answer

Log in or Sign up to answer