Use Customer's Organization information in JSM Cloud Automation rules

Platform Notice: Cloud Only - This article only applies to Atlassian apps on the cloud platform.

Summary

The organization information of a JSM customer is not available as a smart value to be reused in Automation rules. However, you can find all available smart values related to user fields here.

Solution

Set up basic authentication for API

  1. Create an API token — Manage API tokens.

  2. Base64-encode email:token for the header — Basic auth for REST APIs.

Then set the header: Authorization: Basic <encoded string>.

Create the first Action in the Automation rule

In this step, we make an API call to the Get Organization JSM endpoint and use the Reporter's account ID to filter for orgs that the Reporter is a member of.   

1. Create a new Automation rule.

For testing purposes, we recommend the use of Manually triggered.

2. Add an action: Send web request.

Why is a web request needed?

A JSM customer's Organization is not available as a native smart value in Automation. This rule calls the JSM REST API with a Send web request action to fetch the reporter's organizations, then reuses the payload later in the rule.

Web request URL:

https://<YOUR-SITE>.atlassian.net/rest/servicedeskapi/servicedesk/{{issue.Request Type.requestType.serviceDeskId}}/organization?accountId={{issue.reporter.accountId}}

Add Headers: 

  • URL: https://<YOUR-SITE>.atlassian.net/rest/servicedeskapi/servicedesk/{{issue.Request Type.requestType.serviceDeskId}}/organization?accountId={{issue.reporter.accountId}}

  • Method: GET

  • Headers: Accept: application/json and the Authorization header above.

  • Enable Delay execution … until we receive a response.

Validate via the Validate your web request configuration drop-down — a green Response 200 confirms it works.

Please check for Delay execution of subsequent rule actions until we receive a response to this web request.

Send web request configuration. URL targets an Atlassian service desk API. Headers include Accept: application/json and a Basic Authorization. Method: GET. Body: Empty. Waits for response before continuing rule execution.

Test Send Web Request action

  1. Click the "Validate your web request configuration" drop-down. 

  2. Enter an issue key and validate the call.

  3. You should see a green Response 200.

  4. Click Payload to see the returned information.

Reuse information received in the payload

Add all organizations to a custom field value

On the same automation rule, add one more Action: Edit issue

Click More options, then add the following, replacing the custom field ID with your field ID.

{ "fields": { "customfield_10109": "{{webResponse.body.values.name}}" } }

Add all the organizations the reporter is part of to the ticket.

On the same automation rule, add one more Action: Edit issue

{ "update": { "organizations": [ {{#webResponse.body.values}} {"add": {{id}} } {{^last}},{{/}}{{/}} ] } }

Related articles

Updated on July 9, 2026

Still need help?

The Atlassian Community is here for you.