Details
-
Bug
-
Status: Done
-
High
-
Resolution: Fixed
-
5.3.7
-
None
-
3.1
Description
To reproduce:
- Create a behaviour containing only the following initialiser or server-side field script:
import com.atlassian.jira.component.ComponentAccessor import com.onresolve.jira.groovy.user.FieldBehaviours import groovy.transform.BaseScript import static com.atlassian.jira.issue.IssueFieldConstants.ISSUE_TYPE @BaseScript FieldBehaviours fieldBehaviours def constantsManager = ComponentAccessor.getConstantsManager() def queryIssueType = constantsManager.getAllIssueTypeObjects().find { it.name == "Improvement" } getFieldById(ISSUE_TYPE).with { setFormValue(queryIssueType.id) setReadOnly(true) setDescription("This is a description from a behaviour") }
- Open up the issue creation screen in an applicable project.
Behaviour in 5.2.2: Issue type is set to Improvement and is read-only.
Behaviour in latest: Nothing appears to happen and the following message appears in the browser (Chrome) console log:
[SR Behaviours] Unrecognised backend ID, or possibly field with no available options: issueTypeId [SR Behaviours] Field not found: issueTypeId
Attachments
Issue Links
- is related to
-
SRJIRA-1010 Cannot customise proposed issue types using behaviours
-
- Done
-