Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Using Automation: How to Capture a Custom Value from an Object CreateEvent and Send a REST Request

Mustafa Karacabey April 22, 2025

Screenshot 2025-04-22 at 17.10.45.png

"I have a custom value, such as a sasNumber, that I need to send to my API when an object is created. How can I include this custom value in the HTTP request Post Data?"

1 answer

0 votes
Izabela França
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.
April 22, 2025

Hello, @Mustafa Karacabey ! Welcome to the Atlassian Community!

I'm not sure if I understood correctly. Do you mean how we can build the JSON to send via web resquest? If that is the case, we have to build a JSON structure using the objects. Here's an example of s JSON sending the project key, summary and some custom field information via POST.

 

{
"fields": {
"project": {
"key": "TEST"
},
"summary": "{{issue.summary.jsonEncode}}",
"customfield_1234": "{{issue.key}}",
"customfield_4321": "{{issue.customfield_10093.jsonEncode}}",
"customfield_0001": {
"value": "{{issue.fields.customfield_10248.value}}"
}
}
}

 

Let me know if that helps.

Mustafa Karacabey April 24, 2025

Actually, ı try to get payload jira Insight Asset Management Automation module, ı could not get any custom values from object created event

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events