Action Script Examples - Create project and space script
Action |
run |
---|---|
Description |
Run a script that has both Jira and Confluence actions. |
Command |
acli bobswift9 -a run --field category=DEMO --field name=Demo1 --field template=TEMPLATE --input "-a getUser -f null --comment \"set current user replacement variables\" " --input "-a deleteProject --project @name@ --continue" --input "-a createProject --project @name@ --template @template@ --lead \"@userId@\" " --input "-a updateProject --project @project@ --url @server@/wiki/display/@project@" --input "-a copySpace --newSpace @project@ --space @template@ --copyLabels --copyAttachments --copyCategories --replace" --input "-a addLabels --space @project@ --labels team:@category@" --input "-a addVersion --project @project@ --version 1.0" --input "-a createIssue --project @project@ --type Task --summary \"Setup Project @name@\" --fixVersions @version@" --input "-a createIssue --project @project@ --type Task --summary \"Update pages with project specific content\" --fixVersions @version@" --input "-a addRemoteLink --issue @issue@ --name \"@project@ Space\" --url @server@/wiki/display/@project@" |
Run: -a getUser -f null --comment "set current user replacement variables" Data for user 'Test Automation [Bob Swift Atlassian Apps]' discarded Run: -a deleteProject --project Demo1 --continue Project DEMO1 deleted. Run: -a createProject --project Demo1 --template TEMPLATE --lead "Test Automation [Bob Swift Atlassian Apps]" Project 'Demo1' created with key DEMO1 and id 88062. Run: -a updateProject --project DEMO1 --url https://bobswift-test.atlassian.net/wiki/display/DEMO1 Project DEMO1 updated. Run: -a copySpace --newSpace DEMO1 --space TEMPLATE --copyLabels --copyAttachments --copyCategories --replace Page 'Home' copied to 'Home' in DEMO1. Page 'User''s Guide' copied to 'User''s Guide' in DEMO1 with parent 'Home'. Page 'Get Started' copied to 'Get Started' in DEMO1 with parent 'User''s Guide'. Page 'Administrators''s Guide' copied to 'Administrators''s Guide' in DEMO1 with parent 'Home'. Page 'Release Notes' copied to 'Release Notes' in DEMO1 with parent 'Home'. Page 'Home' with 4 descendents copied to 'Home' in space DEMO1. Page has id 431030394. 5 pages copied. Space copied successfully to DEMO1. Run: -a addLabels --space DEMO1 --labels team:DEMO 1 labels added to space DEMO1. Run: -a addVersion --project DEMO1 --version 1.0 Version '1.0' with id 105928 added to project DEMO1 as the last version. Run: -a createIssue --project DEMO1 --type Task --summary "Setup Project Demo1" --fixVersions 1.0 Issue DEMO1-1 created with id 333734. Run: -a createIssue --project DEMO1 --type Task --summary "Update pages with project specific content" --fixVersions 1.0 Issue DEMO1-2 created with id 333735. Run: -a addRemoteLink --issue DEMO1-2 --name "DEMO1 Space" --url https://bobswift-test.atlassian.net/wiki/display/DEMO1 Remote link added with id 10421 to System Confluence. Run completed successfully. 10 actions were successful from input parameters.
Log a request with our support team.
Confluence®, Jira®, Atlassian Bamboo®, Bitbucket®, Fisheye®, and Atlassian Crucible® are registered trademarks of Atlassian®
Copyright © 2005 - 2024 Appfire | All rights reserved. Appfire™, the 'Apps for makers™' slogan and Bob Swift Atlassian Apps™ are all trademarks of Appfire Technologies, LLC.