When bug is closed/done, all fields should be uneditable except fixversions.

Arunajyothi Samala February 21, 2024

Part 1. When the bug moves to closed status, do not allow users to edit any of the fields except fix versions field. 

Part 2. Users with specific role shall be able to edit all fields of a closed bug - create separate group.

2 answers

2 accepted

0 votes
Answer accepted
Mayuresh Kamble
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.
February 21, 2024

Hi @Arunajyothi Samala ,

As @Vishal Biyani mentioned you can set the workflow property to make issue non-editable in the closed status. But to make only "FixVersion" field editable you can try the below workaround :-

1. Create a new Screen and add only "FixVersion" field to the screen.
2. Navigate to the project workflow > edit > Add self reflecting transition named as "Edit" to Closed/Done status and add the newly created screen to the transition.
3. User will have the option to select the edit transition and update the FixVersion field.

edit 3.pngedit 1.pngedit 2.png

Hope that helps!

Regards,
Mayuresh

Arunajyothi Samala February 22, 2024

Hi,

 

Thank you for the response. it is helpful. Adding a transition from done to done, will this have any bussiness impact on. Ideally I would like to give the access to only a group make this transition and we have dont have two done statuses. How this new transition will effect the business reports, jql?

Mayuresh Kamble
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.
February 22, 2024

Hello,

This May have impact on the agile reports like Burndown, Burnup or gadgets where resolved time is involved.

For your second requirement you can add the below property in Done/Closed Status

Property Key = jira.permission.edit.projectrole.1

Property Value: ID_of_your_projectrole

To get the id, navigate to Administration -> System -> Project Roles and click on "Edit" of the desired role. It should show the id in the bottom left corner of your browser (where the target URL gets displayed).

Thanks

 

0 votes
Answer accepted
Vishal Biyani
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.
February 21, 2024

@Arunajyothi Samala 

1)

In workflow, Go to the status transition on which you want to prevent users from updating the field, click on properties and add below in 

key = jira.issue.editable

value = false

it will disable edit to all fields. Natively there is no solution (as far as i know) to allow edit to selected field

refer article https://support.atlassian.com/jira-cloud-administration/docs/use-workflow-properties/

2) For your 2nd use case, clieck on Edit condition of the workflow and add user group condition to allow a particular group to edit even if the issue is in done status

 

Arunajyothi Samala February 22, 2024

Thank you. In the second point, what is the condition that you are referring to?

 

Vishal Biyani
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.
February 22, 2024

@Arunajyothi Samala 

on the status click on properties. if you set

key =  jira.permission.edit.group

value = jira-administrators

it will block others from editing the issue.

refer Workflow properties 

Suggest an answer

Log in or Sign up to answer