Forums

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

How to update ResolutionDate in Java ?

harainye
Contributor
April 19, 2022

Here's my code, but it doesn't work .

mutableIssue.setResolutionDate(new java.sql.Timestamp(System.currentTimeMillis()))

 

Can someone help me out!

thanks a lot!

1 answer

1 accepted

0 votes
Answer accepted
Fabio Racobaldo _Herzum_
Community Champion
April 20, 2022

Hi @harainye ,

you code is correct but, after doing that, you need to save your changes through https://docs.atlassian.com/software/jira/docs/api/8.0.1/index.html?com/atlassian/jira/issue/IssueManager.html and in particular through method 

updateIssue(ApplicationUser user,
                  MutableIssue issue,
                  EventDispatchOption eventDispatchOption,
                  boolean sendMail)

Hope this helps,

Fabio 

Suggest an answer

Log in or Sign up to answer