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

Apply create constrained issue fragment to multiple projects

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Done
    • High
    • Resolution: Done
    • None
    • 5.5.7
    • None
    • None
    • Sprint 52
    • 1

    Description

      We can only apply the create constrained issue script fragment to an individual project in one go. This is due to the way we built the link for that web item. Meaning users have to set multiple constrained issue fragments up across different projects.

      Ideally we would give the option for the user to generate the link parameters using an inline script or via whatever project is selected (via behaviours).

      The workaround for now is to use a parameter in the link which provides the current project id. See example below:

      <web-item key='link-create-blocking' name='ScriptRunner generated web item - link-create-blocking' section='operations-top-level' weight='70'>
        <label>Create blocking</label>
        <styleClass>sr-create-bound-issue</styleClass>
        <link linkId='link-create-blocking'>/jira/secure/CreateIssue.jspa?pid=${project.id}&amp;issuetype=10004</link>
      </web-item>
      

      wdavis hit this issue, and assumed you could set the correct project via behaviours.

      Attachments

        Issue Links

          Activity

            People

              rholban Roland Holban [X] (Inactive)
              amarkham Adam Markham
              Votes:
              2 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: