Uploaded image for project: 'SR for Jira - Development'
  1. SR for Jira - Development
  2. SRJIRA-6177

Behaviours do not apply when create or create subtask action is opened in a new tab

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Triage
    • Low
    • Resolution: Unresolved
    • None
    • None
    • Behaviours
    • 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

      1. 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'])
        
      2. Create an issue and go to its issue view page `http://localhost:8080/jira/browse/TEST-1`
      3. Right-click the Create button at the top and choose to open a new tab
      4. 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mclark Matthew Clark
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: