JIRA resolution set in Post Function disappears?

Katrina Davenport March 26, 2018

I'm using JIRA cloud and have set a post function in the workflow to require the user to select a resolution (Done, Won't Do, Duplicate, Cannot Reproduce) before closing an issue. 

A box pops up with resolution as the required field, the user picks from the drop down, and then closes the issue. 

The resolution that has been selected is somehow not being stored in the history - they're all being set as Unresolved.

Thanks for any help anyone can provide!

My post functions when stories change to closed: 

The following will be processed after the transition occurs

  1. The Resolution of the issue will be set to -1.
  2. Set issue status to the linked status of the destination workflow step.
  3. Add a comment to an issue if one is entered during a transition.
  4. Update change history for an issue and store the issue in the database.
  5. Re-index an issue to keep indexes in sync with the database.
  6. Fire a Generic Event event that can be processed by the listeners.

2 answers

1 accepted

1 vote
Answer accepted
Alexey Matveev
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.
March 26, 2018

I guess, you are on Cloud. Did you use the update issue field post function? If so, I am not sure how you got ther -1 value. I think you should remove the Resolution of the issue will be set to -1 post function and publish the workflow.

0 votes
Katrina Davenport March 26, 2018

Thanks Alexey! That looks like it resolved it. I appreciate the help!

Shiela Mehra January 31, 2019

Can you tell me how you go this to work? 

aviateus February 24, 2024

@Shiela Mehra 
1. You have to remove the incorrect step to set Resolution to -1.

2. Add screen to the transition where you set the resolution manually:
I have a screen called "Resolve Issue Screen"

image.png

https://confluence.atlassian.com/jirakb/map-a-screen-to-a-workflow-transition-in-jira-company-managed-projects-720634253.html

 

 

Suggest an answer

Log in or Sign up to answer