The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Jack Brickey
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 Champions.
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
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 Champions.
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.

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events