Comments
-
Are you saying you want restrict a field to be read-only when the status is "Closed"? You can try to put this snippet in a Behaviour's Initialiser: def status = underlyingIssue.getStatus().getSimpleStatus().getName() if (status == "Closed") { getFieldByName("Your Field Name").setReadOnly(true) }
-
Looking at your requirements: 1. You want to create an issue using a button just like More>Create Sub-task button. 2. The issue is automatically linked to the issue the button is pressed on. This is exactly the kind of use case for Create Constrained Issue feature of ScriptRunner. 1. Navigate ScriptRunner>Fragments>Create…
-
It's not helping if I can't reproduce your problem. You might want to provide more details. If anyone else try to help. Looking at the error: editedValueByUser. Is that a custom field?
-
Navigate > Add post function > Script Post-Function [ScriptRunner] > Create a sub-task Fill in appropriate configurations, and under _Additional issue actions_: import com.atlassian.jira.component.ComponentAccessor def customField = ComponentAccessor.getCustomFieldManager().getCustomFieldObjectsByName("Just text").first()…
-
You probably want to provide more concise details on your use case. I have hard time to understand your question. 😂