I'm trying to accomplish two things here:
1.) On the transitions to the end states, I would like the resolution to be set to 'Done'
2.) When an issue is an end state, I would like all fields to no longer be editable.
I can accomplish both of these things seperately, but I am running into an issue when trying to execute them together. I have given each end state the property 'jira.issue.editable' and set it to false. Alone, this works just as expected. As soon as the issue enters one of those states, the fields are locked and no longer editable. However, when I add in the post-function on the transitions to those status that changes the value of "Resolution" to Done, then the fields remain editable in those states. The resolution is successfully changed to Done though.
Anyone seen this before? Any ideas?
I haven't seen this before, but I'll try to help you until someone who has comes along. :)
First, make sure your "jira.issue.editable" property is set on the step, not on the transition.
Next, try moving your post function up in the list.
Let me know if either of these things improves your situation. This sounds like a common need for others. I'm sure we can figure it out.
Appreciate your response. I can confirm the property is set on the step and not the transition.
Additionally, I did experiment with the post function priority. I placed it first on the list and also last. Unfortunately, this didn't resolve the issue. However, I discovered the issue isn't exactly as I originally described it.
Immediately after I transition the issue to the final stage, I can still edit the fields, which is the action I want to prevent. But as soon as I refresh the page or navigate away from and then back to the issue, the fields are locked.
I tested this with another step property, "jira.permission.edit.group" and confirmed the same behavior is occuring. It successfully locks editing down to the specified group when in a certain state, but only after the page is reloaded.
Is this expected or known behaivor?
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot