Hi all,
I am trying to code a behavior that iterates through all the fields in my current issue and sets them as read-only, applicable onyl if the issue is closed. Can anyone help me here? Thanks in advance
Dear @Lorenzo Brazzi ,
Instead of going through all the fields and making them read only, using script this may cause a performance issue for the page. I suggest you do the same using the inbuilt feature.
Select the fields in the behavior and add the workflow step condition as below.
Dear @Aswin Raj D ,
Thanks for your answer. That's actually what I was trying to avoid. Is there an option of selecting *all felds* instead of adding one by one?
Thanks.
Yes, this can be achieved by adding workflow property,
And the property should be set as follows:
jira.issue.editable=false
Goto your workflow -> select your status -> view properties.
Property Key = jira.issue.editableProperty Value = false
You may not want an issue to be editable when it’s on a particular status. For example, once an issue is in a “Done” status, you may want to restrict editing to ensure no data changes after work is completed.
Use case
Key
Value
To make an issue editable when it's on a particular status.
jira.issue.editable
true
To disable editing when an issue is on a particular status. Often used on a final status.
false
for more details, please have a look at Atlassian documentation on workflow properties
It looks like you're new here. Sign in or register to get started.