Example output - how produced?

Summary 

Bamboo is used to automate the production of the example lists shown on Example output using the Run CLI Actions in Bamboo (Release 3.8 is required). This describes the details of that. 

The following common parameters are used on the actions:

List generation

  • This is the primary tasks that generates the lists:
-a run --common "--outputFormat 999 --dateFormat yyyy-MM-dd" -s https://bobswift.atlassian.net -u automation -p ${bamboo.bobswiftPassword}
 
@DATA:
 
### Site
-a getFieldList --file fieldList.csv 
-a getLinkTypeList --file linkTypeList.csv 
-a getProjectCategoryList --file projectCategoryList.csv 
-a getProjectList --file projectList.csv
-a getStatusList --file statusList.csv
 
### Project specific
-a getComponentList --project example --file componentList.csv
-a getIssueList --project example --file issueList.csv
-a getIssueTypeList --project example --file issueTypeList.csv
-a getProjectRoleActorList --project example --role @all --file projectRoleActorList.csv
-a getSecurityLevelList --project example --file securityLevelList.csv
-a getVersionList --project example --file versionList.csv
 
### Issue specific
-a getAttachmentList --issue example-1 --file attachmentList.csv
-a getCommentList --issue example-1 --file commentList.csv
-a getIssueHistoryList --issue example-1 --file issueHistoryList.csv
-a getLinkList --issue example-1 --file linkList.csv
-a getVoterList --issue example-1 --file voterList.csv
-a getWatcherList --issue example-1 --file watcherList.csv
-a getWorkList --issue example-1 --file workList.csv
 
### Projects for CLI clients, cliProjectList.csv 
-a getProjectList --file cliProjectList.csv --regex "ACLI|BCLI|CSOAP|CRUCLI|FCLI|SCLI"

### Project role actors across all projects
-a runFromProjectList --common "-a getProjectRoleActorList --project @project@ --role @all --file siteProjectRoleActorList.csv --append --outputFormat 999"
 
### Project role actors for CLI client projects, cliProjectRoleActorList.csv is appended with each project's data
-a runFromList --list ACLI,BCLI,CSOAP,CRUCLI,FCLI,SCLI --common "-a getProjectRoleActorList --project @entry@ --role @all --file cliProjectRoleActorList.csv --append --outputFormat 999"

### Version list for CLI projects, cliVersionList.csv is appended with each project's data
-a runFromList --list ACLI,BCLI,CSOAP,CRUCLI,FCLI,SCLI --common "-a getVersionList --file cliVersionList.csv --project @entry@ --append --dateFormat yyyy-MM-dd --outputFormat 999"

Upload to Confluence

  • We choose to remove previous attachments first to avoid clutter
  • We use --continue so that as many as possible files are uploaded even if there is an error. This is especially important on first run or when an attachment doesn't exist yet.
--action run --continue -s https://bobswift.atlassian.net/wiki -u automation -p ${bamboo.bobswiftPassword}
 
@DATA:
 
### Site space permissions
-a getSpacePermissionList --file space-permissions.csv
-a removeAttachment --name space-permissions.csv --space admin --title "Space permission summary" 
-a addAttachment --file space-permissions.csv --space admin --title "Space permission summary"
 
### Site project list
-a removeAttachment --name projectList.csv --space admin --title "Project permission summary"
-a addAttachment --file projectList.csv --space admin --title "Project permission summary" 
 
### Site project role actors
-a removeAttachment --name siteProjectRoleActorList.csv --space admin --title "Project permission summary" 
-a addAttachment --file siteProjectRoleActorList.csv --space admin --title "Project permission summary"
 
### JIRA Site
-a removeAttachment --name fieldList.csv --space JCLI --title "Example output" 
-a addAttachment --file fieldList.csv --space JCLI --title "Example output" 
-a removeAttachment --name linkTypeList.csv --space JCLI --title "Example output" 
-a addAttachment --file linkTypeList.csv --space JCLI --title "Example output" 
-a removeAttachment --name projectCategoryList.csv --space JCLI --title "Example output" 
-a addAttachment --file projectCategoryList.csv --space JCLI --title "Example output" 
-a removeAttachment --name projectList.csv --space JCLI --title "Example output" 
-a addAttachment --file projectList.csv --space JCLI --title "Example output" 
-a removeAttachment --name statusList.csv --space JCLI --title "Example output" 
-a addAttachment --file statusList.csv --space JCLI --title "Example output"
 
### JIRA project specific
-a removeAttachment --name componentList.csv --space JCLI --title "Example output" 
-a addAttachment --file componentList.csv --space JCLI --title "Example output"
-a removeAttachment --name issueList.csv --space JCLI --title "Example output" 
-a addAttachment --file issueList.csv --space JCLI --title "Example output"
-a removeAttachment --name issueTypeList.csv --space JCLI --title "Example output" 
-a addAttachment --file issueTypeList.csv --space JCLI --title "Example output"
-a removeAttachment --name projectRoleActorList.csv --space JCLI --title "Example output" 
-a addAttachment --file projectRoleActorList.csv --space JCLI --title "Example output"
-a removeAttachment --name securityLevelList.csv --space JCLI --title "Example output" 
-a addAttachment --file securityLevelList.csv --space JCLI --title "Example output"
-a removeAttachment --name versionList.csv --space JCLI --title "Example output" 
-a addAttachment --file versionList.csv --space JCLI --title "Example output"
 
### JIRA issue specific
-a removeAttachment --name attachmentList.csv --space JCLI --title "Example output" 
-a addAttachment --file attachmentList.csv --space JCLI --title "Example output"
-a removeAttachment --name commentList.csv --space JCLI --title "Example output" 
-a addAttachment --file commentList.csv --space JCLI --title "Example output"
-a removeAttachment --name issueHistoryList.csv --space JCLI --title "Example output" 
-a addAttachment --file issueHistoryList.csv --space JCLI --title "Example output"
-a removeAttachment --name linkList.csv --space JCLI --title "Example output" 
-a addAttachment --file linkList.csv --space JCLI --title "Example output"
-a removeAttachment --name voterList.csv --space JCLI --title "Example output" 
-a addAttachment --file voterList.csv --space JCLI --title "Example output"
-a removeAttachment --name watcherList.csv --space JCLI --title "Example output" 
-a addAttachment --file watcherList.csv --space JCLI --title "Example output"
-a removeAttachment --name workList.csv --space JCLI --title "Example output" 
-a addAttachment --file workList.csv --space JCLI --title "Example output"
 
### JIRA CLI example
-a removeAttachment --name cliVersionList.csv --space JCLI --title "Example output" 
-a addAttachment --file cliVersionList.csv --space JCLI --title "Example output"

Clean

  • Clean is a simple script to remove files: rm *.csv
  • This is specifically needed for the generations that use --append support which should start with an empty file

Screen shot

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.