This article explains how to create a Confluence page and add a Jira version simultaneously, when both the apps are available on Cloud, using Command Line Interface (CLI).
Instructions
...
You can add a page in Confluence and the version of the Jira project simultaneously with Atlassian Command Line Interface v8.6.
- Make sure that the acli.properties file in the CLI client folder is filled with server details of both Jira and Confluence applications.
Please refer Refer to the CLI Client Installation and Use for the installation guide. - Comment out the default application in the aclithe acli.properties file as we are going to perform actions the actions are performed in Jira and Confluence simultaneously. Here is a sample properties file for your reference:
Create a text file (Ex: for example, cmd1.txt), and, add the actions actions addVersion and and addPage to add a version in Jira and create a page in Confluence. Here is an example:
Code Block theme Midnight --action addVersion --project "CREAT" --name "V2" --action addPage --space "tabletest" --title "This is title 0" --content "This is a test page” --parent "Home"
To execute the file from the terminal, use the below following action:
Code Block theme Midnight myjira myconfluence --action run --file "cmd1.txt"
Note Note that myjira and myconfluence are the names for the Jira and Confluence instances used for this example. You must change these names as per your requirement in your environment.
Info |
---|
|