Versions Compared

Key

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

...

  1. Navigate to Global Automation at instance_url/jira/settings/automation

  2. Click Create

  3. Select Trigger Object

  4. Add component, select THEN action

  5. Select Send web request

  6. Paste the copied URL from pre-condition into Web request url field

  7. Add ?token=<<<token from pre-condition>>>&spaceKey=<<<THE_SPACEKEY>>>

  8. Select Method POST

  9. Select Custom Data

  10. Add the following body, it will create a Page with the same name as the object

    Code Block
    [
        {
            "title":"{{object.name}}",
            "parentPageId":"",
            "macros":<<<MACRO_CONFIG_GOES_HERE>>>
        }
    ]
  11. Paste the response from the Get template configuration step (e.g. REST request) in the <<<MACRO_CONFIG_GOES_HERE>>> part of the above code.

    Code Block
    [
        {
            "title":"{{object.name}}",
            "parentPageId":"",
            "macros":[
                    {
                        "id": "THIS_CAN_BE_BLANK",
                        "configuration": {
                            "columns": [],
                            "iql": "key={{object.key}}",
                            "displayAs": "AS_VERTICAL_TABLE",
                            "pageSize": 25,
                            "schemaId": "6",
                            "connectionId": "45157a8a-79ad-46f7-b920-c21211bf79ec"
                        }
                    }
                ]
        }
    ]
  12. Click Turn on Rule

  13. Name the rule something, lets call it Create page from object.

...