Skip to end of banner
Go to start of banner

Create a Confluence page from a Jira version in Cloud using Command Line Interface (CLI)

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 15 Next »

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

  1. With Atlassian Command Line Interface v9.0, we can add a page in Confluence and the version of the Jira project simultaneously.

  2. 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 to the CLI Client Installation and Use for the installation guide.
  3. Comment out the default application in the acli.properties file as we are going to perform actions in Jira and Confluence simultaneously.
  4. Here is a sample properties file for your reference:
  5. Create a text file (Ex: cmd1.txt) and add the actions addVersion and addPage to add a version in Jira and create a page in Confluence. Here is an example: 

     --action addVersion  --project "CREAT"  --name "V2"
     --action addPage --space "tabletest"  --title "This is title 0"  --content "This is a test page” --parent "Home"
  6. To execute the file from the terminal, use the below action:

    myjira myconfluence --action run --file "cmd1.txt"
It is necessary to have both the Jira and Confluence Command Line Interface (CLI) apps in your respective cloud instances. It is recommended to test this scenario in a non-production environment or run the action with the --simulate parameter to verify the behavior before deploying.
  • No labels