Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-14164

Jelly TransitionWorkflow tag in forEach loop sets wrong assignees

    XMLWordPrintable

Details

    Description

      If we have a Jelly script, running a filter that results >1 issue, and transitioning them, eg:

      <JiraJelly xmlns:jira="jelly:com.atlassian.jira.jelly.enterprise.JiraTagLib" xmlns:core="jelly:core" xmlns:log="jelly:log">
              <jira:RunSearchRequest filterid="10020" var="issues" />
              <core:forEach var="issue" items="${issues}">
                  <log:warn>Transitioning issue ${issue.key}</log:warn>
                  <jira:TransitionWorkflow key="${issue.key}" workflowAction="Resolve Issue"/>
              </core:forEach>
      </JiraJelly>
      

      Then all transitioned issues will have their assignee set to that of the first encountered issue.

      Attachments

        Issue Links

          Activity

            People

              mtokar Michael Tokar
              7ee5c68a815f Jeff Turner
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: