Description
We always are sensitive to upward compatibility of our offerings and specifically want to make sure CLI scripts are as upward compatible as possible at least with the respect to those aspects that are under our control. Most of our actions remain compatible across a wide range of Atlassian application releases and even to high degree across Server and Cloud environments. However, on a CLI version boundary, we do take the opportunity to remove previously deprecated support or make some changes especially where it will simplify new user experiences and remove clutter for users. This page describes some of the important changes to be aware of when upgrading to 9.x from 8.x or earlier.
Removed Actions
Clients | Removed | Replacement | Discussion |
---|---|---|---|
jira | getLoginInfo | getUser | Similar information is part of the getUser action for the current user (default with no parameters) |
jira | progressIssue | transitionIssue | Terminology change made in 4.x |
jira | getAvailableSteps | getTransitionList | Terminology change made in 4.x |
jira | createBoard | agile client | With delegated support, there should be no impact as a jira request is automatically routed to the agile client |
jira | deleteBoard | agile client | With delegated support, there should be no impact as a jira request is automatically routed to the agile client |
jira | getBoardList | agile client | With delegated support, there should be no impact as a jira request is automatically routed to the agile client |
upm | addAddon | addApp | Atlassian terminology change from addon to app. |
upm | disableAddon | disableApp | Atlassian terminology change from addon to app. |
upm | enableAddon | enableApp | Atlassian terminology change from addon to app. |
upm, confluence | getAddon | getApp | Atlassian terminology change from addon to app. |
upm | getAddonList | getAppList | Atlassian terminology change from addon to app. |
upm, confluence | installAddon | installApp | Atlassian terminology change from addon to app. |
upm | runFromAddonList | runFromAppList | Atlassian terminology change from addon to app. |
Removed Parameters
Clients | Removed | Replacement | Discussion |
---|---|---|---|
confluence | -t short flag for title | title | CLI standards are to use -t short flag for token, so Confluence needed to change to be consistent. |
upm, confluence | addon | app | Atlassian terminology change from addon to app. |
jira | board | agile client | With delegated support, there should be no impact as a jira request is automatically routed to the agile client |
servicedesk, bamboo | field3, field4, field5, field6, field7, field8 | field | The newer field parameter can be used multiple times and provides a better solution
|
servicedesk, bamboo | value3, value4, value5, value6, value7, value8 | field | The field parameter covers both field and value with a key = value syntax |
Start Scripts and Configuration
Since CLI 8.4, we have made significant improvements to ease user setup and configuration customization. More information on this is available with Getting Started with Configuration for Mac and Linux. This provided another option for users while maintaining existing support.
With CLI 9.x, we are discontinuing providing legacy start scripts in the distribution in favor a much simpler start script that optionally supports a saved configuration. Start scripts continue to be customizable and users can continue to use their existing customizations with only minor changes if they want or they can adopt the new start script layout and take advantage of the configuration options available with the new support. We strongly recommend adopting the acli style start script and configuration now available in the distribution.
Feedback
If you have feedback on this change or related areas, please add your comments to ACLI-760.
Migrating Legacy Start Scripts
Many people continue to use the original jira, confluence, or similar start scripts that have been in the distribution since the beginning. Some may have switched over to and customized the atlassian start script
- If you haven't customized the these, then the acli start script included in the distribution will most likely work out in a similar fashion right away.
- If you have customized the script, it will need a small change as indicated below. We will use jira as an example, but all the others are similar. In summary, we have changed the jar name to acli that works for all clients. It accepts an optional first value of the client name. If the client name is not provided as the first parameter, the CLI will look for the right client to use for your specific action and parameters.
java -jar "%dirPath%"/lib/jira-cli-8.8.0.jar %* change to java -jar "%dirPath%"/lib/acli-9.0.0.jar jira %*
java -jar `dirname $0`/lib/jira-cli-8.8.0.jar "$@" change to java -jar `dirname $0`/lib/jira-cli-9.0.0.jar jira "$@"
The Atlassian script may have one or more lines that reference the call string. Each reference will need to be changed.
callString="jira-cli-${cliVersion}.jar ... " change to callString="acli-${cliVersion}.jar jira ... "