Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
Teams
, (opens new window)

Appfire Command Line Interface (CLI)
Results will update as you type.
  • Overview
  • Installation and configuration
  • Get started
  • Features
    • Use the --continue parameter for flexible error handling in scripts
    • Run ACLI actions interactively using console mode
    • Reference
    • Configure action logging and anonymous analytics in ACLI
    • Customize Jira logging with Log4j2 for better visibility
    • Use JSON paths to reference data in ACLI actions
    • Understand exit codes for error handling in ACLI
    • Use output formats and columns to control list output
  • Help and support
  • Release notes
  • Use cases
  • Miscellaneous
  • Appendix
    You‘re viewing this with anonymous access, so some content might be blocked.
    /
    Use JSON paths to reference data in ACLI actions
    Updated May 23

    Use JSON paths to reference data in ACLI actions

    Some advanced ACLI actions—such as runFromJson—require you to reference specific values within a JSON object. To do this, use a JSON path, a standard syntax for querying and extracting data from JSON structures.

    What is a JSON path?

    A JSON path is similar to an XPath expression for XML, but is designed for JSON data. It lets you navigate through nested JSON elements to access exactly the data you need.

    For example, in the following JSON object:

    { "project": { "key": "TEST", "name": "Test Project" } }

    You can use the JSON path expression $.project.key to retrieve the value "TEST".

    Learn more

    To learn how to construct JSON path expressions, see the official documentation:
    JsonPath/README.md at master · json-path/JsonPath

    This resource includes usage examples, syntax rules, and advanced features supported by the JSONPath library used in ACLI.

     

    {"serverDuration": 12, "requestCorrelationId": "304ae8892aac40ada7ea6b39e50ed7e9"}