Versions Compared

Key

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

How This article explains how to create a confluence Confluence page and add a Jira version simultaneously, when both the apps are available on the cloudCloud, 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.

  1. Make sure that the acli.properties mention both the applications URL and comment the Default. file in the CLI client folder is filled with server details of both Jira and Confluence applications. Refer to the CLI Client Installation and Use for the installation guide.
  2. Comment out the default application in the acli.properties file as the actions are performed in Jira and Confluence simultaneously. Here is a sample properties file for your reference:
    Image Added
  3. Create a text file (for example, cmd1.txt), and, add the

    below actions in your file.

    actions addVersion and addPage to add a version in Jira and create a page in Confluence. Here is an example: 

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


  4. To execute the file , from the terminal run the below-given action, use the following action:

    ./acli.sh
    Code Block
    themeDJango
    Midnight
    myjira myconfluence --action run --file "/Users/Reshma/Documents/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
  • It is necessary to have both
 the
  • 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.