Versions Compared

Key

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

This is a tutorial shows how to update an Insight Object with the same name "Hello RINT" as the Custom field ID 12345 of the issue10001 is our Insight Custom field, holding the current object.

You can add more issue data by simply using the {{issue.xyz}} Mustache Variables - Usage a notation to access the issue data.

...

  1. Create a new Action by clicking 
    Status
    colourBlue
    titleCreate
     button
  2. Enter a name: Create Insight Object and click 
    Status
    colourBlue
    titleCreate
  3. Select Method:
    Status
    colourYellow
    titlePUT
     and URL: <your_base_url>/rest/insight/1.0/object/{{issue.customfield_10001.id}}
    From the Insight REST API we can read to create on an object we need to call PUT https://documentation.riada.io/display/INSSERV/Objects+-+REST
  4. Select Authentication method: Basic Auth, specify a user that has permission to manage insight schemas
  5. Add request headers, key: Content-Type with value application/json
  6. On the Body section add the following

    Code Block
    {
        "attributes": [{
            "objectTypeAttributeId": 1,
            "objectAttributeValues": [{
                "value": "{{issue.customfield_12345}}Hello RINT!"
            }]
        }]
    }


  7. Click Triggers tab
  8. Select 
    Status
    colourGreen
    titleISSUE CREATED
     event
  9. On JQL Condition. When to execute the event(s) write Project = TESTB and to limit the trigger to the TESTB project
  10. Click 
    Status
    colourBlue
    titleSAVE
  11. (Optional) Click Test button, Issue Key needs to be provided and click Send, Then go View Execution Log Tab.