Skip to end of banner
Go to start of banner

Examples

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

« Previous Version 88 Next »

Action usage examples

Examples give users ideas on actual usage. We use automation to generate, test, and run these actions, so names and combinations may be odd or repetitive (wink). In many cases, other actions or environmental setup is required for the action to run, so you will need to adjust the action parameters and setup appropriate for your environment. 

Command line environments can be different, especially between Windows and non-Windows systems. Our Tips page talks about command line escaping differences and there are differences with respect to environment variable references ($ for non-Windows and %...% for Windows). These differences can impact examples, so recognize and adjust for your platform. In particular, all examples here are run with the standard bash shell on Linux.



addBoardAdministrators

--action addBoardAdministrators --board "7175" --group "jira-developers" --userId "developer"

addBoardColumn

--action addBoardColumn --board "7175" --name "C1"
--action addBoardColumn --board "7175" --name "C2" --status "In Progress"

addIssuesToSprint

--action addIssuesToSprint --sprint "5157" --issue "ZCLISPRINTS-1"
--action addIssuesToSprint --sprint "5157" --jql "project = ZCLISPRINTS AND status != CLOSED"

addQuickFilter

--action addQuickFilter --board "7175" --filter "ZCLIBOARDS" --description "Test Demo" --jql "affectedVersion is not EMPTY"

completeSprint

--action completeSprint --sprint "5154"
--action completeSprint --sprint "5156"

copyBoard

--action copyBoard --board "7175" --name "ZCLIBOARDSY"
--action copyBoard --board "ZCLIBOARDSX"

createBoard

--action createBoard --name "ZCLIBOARDS" --type "kanban" --project "ZCLIBOARDS"
--action createBoard --name "ZCLIBOARDS" --type "scrum" --project "ZCLIBOARDS"
--action createBoard --name "ZCLISPRINTS" --type "kanban" --project "ZCLISPRINTS"
--action createBoard --name "ZCLISPRINTS" --type "scrum" --project "ZCLISPRINTS"

createSprint

--action createSprint --name "ZCLISPRINTSExample1" --board "7178"
--action createSprint --name "ZCLISPRINTSExample2" --board "7178" --startDate "2021-01-01" --endDate "2021-01-15" --dateFormat "yyyy-MM-dd"

deleteBoard

--action deleteBoard --board "NOT_FOUND" --continue
--action deleteBoard --board "ZCLIBOARDS3"
--action deleteBoard --board "ZCLIBOARDSY" --deleteFilter
--action deleteBoard --board 1234567890 --continue

deleteSprint

--action deleteSprint --sprint "5156"

getBoard

--action getBoard --board "7175"
--action getBoard --board "7176"
--action getBoard --board "ZCLIBOARDS" --type "kanban"
--action getBoard --board "ZCLIBOARDS" --type "scrum"

getBoardColumnList

--action getBoardColumnList --board "7175"

getBoardList

--action getBoardList
--action getBoardList --regex "ZCLIBOARDS" --outputFormat 999

getClientInfo

--action getClientInfo
--action getClientInfo --outputFormat 2

getQuickFilter

--action getQuickFilter --board "7175" --filter "15106"

getQuickFilterList

--action getQuickFilterList --board "7175"

getSprint

--action getSprint --sprint "5156"
--action getSprint --sprint "ZCLISPRINTSExample1"

getSprintList

--action getSprintList --board "7178" --dateFormat "yyyy-MM-dd"

releaseVersion

--action releaseVersion --board "7178" --project "ZCLISPRINTS" --version "CLI-LATEST" --date "2021-01-31" --dateFormat "yyyy-MM-dd"

removeBoardColumn

--action removeBoardColumn --board "7175" --column "C2"
--action removeBoardColumn --board "7175" --column "NOT_FOUND" --continue

removeQuickFilter

--action removeQuickFilter --board "7175" --filter "ZCLIBOARDSX"

run

--action run --common "--board 7178" --input "-a createSprint --name ZCLISPRINTS" --input "-a createSprint --name ZCLISPRINTS --options createAnother" --input "-a createSprint --name ZCLISPRINTS --continue" --input "-a createSprint" --input "-a createSprint" --input "-a createSprint --name ZCLISPRINTS1 --startDate 2021-01-01 --endDate 2021-01-15 --dateFormat yyyy-MM-dd" --input "-a createSprint --name ZCLISPRINTS2 --startDate 2021-01-01 --endDate 2021-01-15" --input "-a createSprint --name ZCLISPRINTS3" --input "-a createSprint --name ZCLISPRINTS4" --input "-a createSprint --name ZCLISPRINTS5" --input "-a createSprint --name ZCLISPRINTS6" --input "-a getSprintList"
--action run --common "--project ZCLIBOARDS --type scrum" --input "-a createBoard --name ZCLIBOARDS1" --input "-a createBoard --name ZCLIBOARDS1 --continue" --input "-a createBoard --name ZCLIBOARDS1 --options createAnother" --input "-a createBoard --name ZCLIBOARDS2" --input "-a createBoard --name ZCLIBOARDS3" --input "-a getBoardList"
--action run --file "/opt/atlassian/pipelines/agent/build/src/itest/agile/resources/kanban-board-config-template.txt" --common "--board 7176" --continue
--action run --file "/opt/atlassian/pipelines/agent/build/src/itest/agile/resources/scrum-board-config-template.txt" --common "--board 7175" --continue
--action run --input "-a deleteSprint --sprint 5154" --input "-a deleteSprint --sprint 5155" --input "-a deleteSprint --sprint 5155 --continue" --input "-a getSprintList --board 7178"
--action run --input "-a updateSprint --sprint 5150 --name zzSprint1a" --input "-a updateSprint --sprint 5154 --name ZCLISPRINTS6" --input "-a updateSprint --sprint 5151 --endDate 2021-01-31 --dateFormat yyyy-MM-dd" --input "-a updateSprint --sprint 5152 --state active --startDate 2021-01-01 --endDate 2021-01-15 --dateFormat yyyy-MM-dd" --input "-a completeSprint --sprint 5152" --input "-a startSprint --sprint ZCLISPRINTS4 --startDate 2021-01-01 --endDate 2021-01-15" --input "-a completeSprint --sprint ZCLISPRINTS4" --input "-a startSprint --sprint 5154 --startDate 2021-01-01 --endDate 2021-01-15" --input "-a getSprintList --board 7178"

runFromBoardList

--action runFromBoardList --limit 1 --regex "ZCLIBOARDS" --common "-a getBoard --board @boardId@"

runFromQuickFilterList

--action runFromQuickFilterList --board "7175" --limit 1 --regex "ZCLIBOARDS" --common "-a getReplacementVariableList"

runFromSprintList

--action runFromSprintList --board "7178" --common "--action getReplacementVariableList"

setBoardAdministrators

--action setBoardAdministrators --board "7175" --group "jira-administrators" --userId "automation"

startSprint

--action startSprint --sprint "5156"

updateBoard

--action updateBoard --board "7175" --estimation "Story Points" --tracking "Remaining Time Estimate"
--action updateBoard --board "7175" --filter "Filter for project ZCLIBOARDS"
--action updateBoard --board "7175" --name "ZCLIBOARDSX"
--action updateBoard --board "7176" --subquery "fixVersion is NOT EMPTY"

updateBoardCard

--action updateBoardCard --board "7175" --field "Approvals" --cardType "@all" --options "disableDaysInColumn"
--action updateBoardCard --board "7175" --field "Assignee" --cardType "backlog"
--action updateBoardCard --board "7175" --field "Creator" --cardType "sprint" --options "enableDaysInColumn"
--action updateBoardCard --board "7176" --field "Approvals" --options "enableDaysInColumn"

updateBoardColumn

--action updateBoardColumn --board "7175" --column "C1" --name "C1A" --status "In Progress,CLOSED"

updateQuickFilter

--action updateQuickFilter --board "7175" --filter "15106" --name "ZCLIBOARDSX" --jql "assignee is not EMPTY"

updateSprint

--action updateSprint --sprint "5156" --startDate "2021-01-01" --endDate "2021-01-15" --dateFormat "yyyy-MM-dd"
  • No labels