Skip to end of banner
Go to start of banner

How to use runFromIssueList

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Description

Often you need to run the same action against a set of issues. This describes how to do that using runFromIssueList.

runFromIssueList is like other run actions and how it behaves. It will run the same action for each issue in a issue list determined by a filter or search (JQL). The issue list generated is similar to how getIssueList works. This works by providing a substitution variable that provides the issue key to the common action to run.

Examples

--action runFromIssueList --search "project = 'zjiracli' and labels != null" --common "--action addLabels --issue @issue@ --labels done-by-action" 

Notes

  • search is a JQL search, a filter could also be used
  • common is the action that is run for each issue found by the search

Substitution variables

Use @ surrounding the variable name in your action.

Error formatting macro: csv: java.lang.NullPointerException: Cannot invoke "com.atlassian.confluence.xhtml.api.MacroDefinition.getMacroId()" because "macroDefinition" is null

Variable, Substitution
issue, Issue key
issueId, Numeric issue id
project, Project containing issue

  • No labels