How to make Rest API calls from Jira to any app/server??

Srikanth Vemuluri November 30, 2022

Hello All,

I need to make Rest API calls from Jira whenever an issue is created in a particular project. And also want to update the field values in Jira through another call. Is it possible??
If so please suggest..

1 answer

0 votes
Tansu Akdeniz
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 30, 2022

Hi @Srikanth Vemuluri 

You can create an automation from Project Settings -> Automation section and send a web request when issue created.

Srikanth Vemuluri December 1, 2022

Hello @Tansu Akdeniz 

Thank you for the Quick response.

In Automations we have only Incoming web hook rule. But I want to create a Outgoing call from Jira..

Tansu Akdeniz
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 1, 2022

I mean the following one:

jira.png

Srikanth Vemuluri December 1, 2022

Oh Okay. Got it. Thank you

Anirudh Pratap Verma May 13, 2024

Hello Srikanth @Srikanth Vemuluri ,

were you able to make API calls from jira?

My requirement is -
When the ticket is created (with custom field value "A" and "B")> trigger API call to get value of a custom field say "C" from github.


Github has a a table -

Field1   Field2    Field3
 A             B           C

 

So it the ticket created with value A and B then it should fetch C from it and update in the ticket custom field.

@Tansu Akdeniz @Srikanth Vemuluri 
is this possible?

Thanks
       

SM
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 24, 2024

@Anirudh Pratap Verma  I had a similar requirement and you can use a header dot notation to extract the value and set it as a variable 

Extract Data from the Response

  1. Handle Response: In the "Send web request" action, you can use smart values to extract data from the response. For example, if the API returns { "userId": 123 }, you can capture this in a variable using {{webResponse.headers.userId}}

Use the Extracted Data in a Follow-Up API Call

  1. Add Another Web Request Action: After the first web request action, add another "Send web request" action.
  2. Configure the Second Web Request:

Suggest an answer

Log in or Sign up to answer