I do have a custom field type (A) which I can't make readonly in a certain workflow step with ScriptRunner (It's probably not supported).
Let's say I do have the workflow steps Status 1, Status 2, Status 3
My workaround is to create a new JIRA custom field (B).
Problem with Behaviours is that I cant differentiate between Hiding and making a field Readonly for different statuses.
Is there a way with a script to solve the problem?
Regards,
Joerg
In a behaviour you can check what workflow step or action you are currently on if you attach a server side script to the initialiser or one of the fields. Please see example #7 here.
You can modify the example to be something like:
if (getActionName() == "Start Progress" || getDestinationStepName() == "Done") { // <7> formField.setHidden(false) formField.setReadOnly(true) } else { formField.setHidden(true) }
This should achieve what you want.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.