Details
-
Bug
-
Status: Triage
-
Low
-
Resolution: Unresolved
-
None
-
None
-
None
-
0
Description
Behaviours do not run when you open the create screen or create sub-task screen in a new tab via a right-click open in new tab action when clicked from an existing issues view page. Behaviours will only run if you open a new tab and refresh the page.
NOTE: the behaviours do run if you right-click the create button and open a new tab from the Jira system dashboard. It only fails if you open a new tab from the issue view page.
Steps to reproduce
- Create a behaviours initialiser script like below and map to your test project for all issue types
import static com.atlassian.jira.issue.IssueFieldConstants.ISSUE_TYPE getFieldById(ISSUE_TYPE).setFieldOptions(['Task'])
- Create an issue and go to its issue view page `http://localhost:8080/jira/browse/TEST-1`
- Right-click the Create button at the top and choose to open a new tab
- Select the Issue type field
Expected result:
You will only see the restricted issue type of `Task` as defined in the behaviour
Actual result
You will see all issue types, and only if you refresh the page will behaviours then correctly restrict the issue types.