Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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
    ACLI version
     Atlassian Command Line Interface 9.0 version, we
     can add the version to a Jira project and create a page in Confluence simultaneously using Command Line Interface (CLI).
  2. Include both Confluence and Jira application URLs in the properties file.
  3.  can add a page in confluence and the version of the Jira project simultaneously.
  4. Make sure that 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.
  5. Comment out the Default application in the acli.properties file as we are going to perform actions in Jira and Confluence simultaneously.
  6. Please see below a sample properties file for your reference.
    Image Added
  7. Create a text file (say cmd1.txt) with and add the actions addVersion and addPage to add a version in Jira and create a page in Confluence into the file as below

    Code Block
    themeMidnight
     --action addVersion  --project "CREAT"  --name "V2"
     --action addPage --space "tabletest"  --title "This is title 0"  --content "This is a test page” --parent "Home"


  8. To execute the file, from the terminal run the below-given action

    Code Block
    themeMidnight
    myjira myconfluence --action run --file "cmd1.txt"


Info
It is necessary to have both the Jira and Confluence Command Line Interface (CLI) apps in your respective cloud instances.

...