Forums

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

How to set the "Resolved" date to null?

Ezadin Mahmoud August 25, 2021

Hello Community,

we accidentally set a ticket to "Resolved" (Resolution = Done) and the date "Resolved" is now displayed.

We have set the resolution back to unresolved, but the "Resolved" date is still showing.

My question is how to set the "Resolved" date to null?

 

Best regards

Ezadin

 

1 answer

0 votes
Jack Brickey
Community Champion
August 25, 2021

How did you set the resolution back to unresolved? In all my cases where I have a post function to clear the resolution field the resolve date is also cleared. Note I am assuming that you are using a CMP project here. The only time I have seen this be an issue is if someone is not clearing the resolution field upon reopening or they have created a “unresolved“ value in the resolution field which is a very bad idea.

Ezadin Mahmoud August 26, 2021

Hello Jack,

I used scriptrunner script in consol to reset the resolution and I like to use the same way to reset the resolution's date.

It is possible to set the resolution date with these tow lines:
....
issue.setResolutionDate(timestamp date)
issue.store()

but issue.store() is not recommended as this can cause problems (I am  using Jira v8)

and
issueManager.updateIssue(user, issue, EventDispatchOption.ISSUE_UPDATED, false)
dose not save the changed Resolution Date

Best regards

Ezadin

Jack Brickey
Community Champion
August 26, 2021

I really can't answer that for you I have not used scriptrunner in many years to be honest. If you don't get a response from someone else here you might consider opening up a new post that specifically asks that question. Or search the community for similar questions.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events