I am trying to set the description field to read only, when a specific workflow happens, and switch it back, when another workflow step occours.
I tried the following code with Scriptrunner Workflow functions. I do not see any errors in the History, but it still does not work, the description field stays editable.
@BaseScript FieldBehaviours fieldBehaviours
final String fieldName = "description"
Help is greatly appreciated.
Hi @Patrik ,
If you call the description field like that, it returns a string (the content of the description), and you can't make that read only.
However, there is another way to tackle this with a behaviour instead of a workflow function:
Strangely enough it will look like the description field is still editable in the issue view (the pencil is still there), but it is not if you try to edit it.
Hope this helps!
Hello Community! Quick disclaimer: We are running a contest on Community (The Atlympics!) from July 23rd - August 8th of 2021. If you are interested in participating in this contest (prizes! ...
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