What would be the right JSON format for components and custom fields

Anna Zakoyan February 19, 2024

Hello, we are integrating Intercom with Jira Cloud. Now when matching the fields, I need to write a JSON syntax to get the additional fields. These are the fields I need to get. 

project = "IG" and "Severity[Dropdown]" in (Critical, Major, Minor, Moderate) ORDER BY cf[10071]

project = "IG" and "CS Agent[User Picker (single user)]" is not empty ORDER BY cf[10088]

project=IG and component in ("Platform Web/Mobile", Payments, "Mobile App", Affiliate, Back-End, BackOffice, "Casino ", Chat, CRM, "Fraud & Risks", "In-House Games", "Product Marketing", Sportsbook) ORDER BY component

Now in Intercom they have an example of the JSON syntax they need:

{
"customfield_10001": "Custom Field Value 1",
"customfield_10002": "2023-12-31",
"customfield_10003": [
"Option 1",
"Option 2"
],
"customfield_10004": true,
"customfield_10005": {
"version": 1,
"type": "doc",
"content": [
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "Hello world."
}
]
}
]
}

 

Can you please turn the fields information I need into a valid JSON syntax? Would appreciate that.

1 answer

0 votes
Kalyan Sattaluri
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 19, 2024

Hello @Anna Zakoyan 

I am confused when you say, "I need to write a JSON syntax to get the additional fields".

What are you actually trying to do?

As in, what is your goal and what steps are you planning to take or have taken?

Do you want to "GET" this data from REST API?

Do you want to "POST" / update issues?

Its not clear what the ask is?

 

Anna Zakoyan February 28, 2024

Hey @Kalyan Sattaluri here is the detailed description of what I want to do.

 

1. In Intercom I want to link the tickets to Jira tickets so that it automatically updates some additional fields once the corresponding fields are entered in Intercom.

Example:

Screenshot 2024-02-28 121427.png

I try to use the guide here https://confluence.atlassian.com/jirakb/how-to-find-any-custom-field-s-ids-744522503.html but again it is not working.  So I want to understand how to write down the JSON syntax here to match it to Intercom fields.

 

Right now I have Components and Severity fields in Intercom ticket, and have Components and Severity custom field in Jira I want to match with each other.

Hope that makes sense.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events