How to differentiate the webhook was invoked via jira api or jira application

MiaProva
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!
November 14, 2018

Hi

When we create a ticket in our application, we call jira rest api to create a ticket in Jira, which in turn calls the webhook.

is there a way to differentiate that the webhook is triggered by jira rest API update or jira application Update.

 

 

Regards,

Antony

 

1 answer

0 votes
Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 16, 2018

For issue creation, there is not a clear way to tell if this was done by a REST API call for Jira Software or Jira Core projects.  The issue history does not indicate the method used to create issues in Jira this way.

However if you were using Jira Service Desk, there is actually a field on Service Desk issues called "Channel".  This field is filled out at the time of issue creation with the source of this particular issue, such as Email, customer portal, Jira, or API.

If you were using Jira Server, you might be able to look back through an HTTP access log to see if there was a HTTP web session created for the user account, such as the calling of a login.jsp page. If you saw that, it tends to indicate that user was logged in via the web browser, whereas API calls to create issues to Jira would have entry to log this session.

However for Jira Cloud, there is no such access logging available to Jira site-admins.   There was a Cloud feature request to better track these different ways users can create/update issues over in https://jira.atlassian.com/browse/JRACLOUD-29669 however this was closed out as something that was not planned to be implemented in Jira.

Suggest an answer

Log in or Sign up to answer