Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Why is "Resolution Date" not updating when I set "Resolution" programatically? Edited

I have a plugin that is setting "resolution" by adding it to the issueInputParameters, validating, and saving.  This works as expected and the change is reflected on the issue.  However, "resolutiondate" is still null.  Most of the things I've read say that the "resolutiondate" is automatically derived from the last time the "resolution" was set (which would be fine if it worked).  I have also tried firing an IssueEvent with EventType ISSUE_RESOLVED_ID after the save, but that hasn't helped.


//Code to set the resolution
ResolutionManager resolutionMananger = ComponentAccessor.getComponent(ResolutionManager.class);
Resolution resolution = resolutionMananger.getResolutionByName(value);

//Code to validate and save
IssueService.UpdateValidationResult updateValidationResult =
issueService.validateUpdate(user, issue.getId(), issueInputParameters);
IssueResult updateResult = issueService.update(user, updateValidationResult);

//Code to fire an issue resolved event
EventPublisher eventPublisher = ComponentAccessor.getComponent(EventPublisher.class);
HashMap<String,Object> paramMap = new HashMap<String,Object>();
eventPublisher.publish(new IssueEvent(issue, paramMap, user, EventType.ISSUE_RESOLVED_ID));

IssueInputParameters does have a setResolutionDate function, but it doesn't work (which I didn't expect it to based one what I've read).  Is there a way to force an issue to re-calculate the "resolutiondate"?

0 answers

Suggest an answer

Log in or Sign up to answer

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you