Freshdesk JIRA integration using webhook - jira

I am trying to create ticket in freshdesk whenever I update a jira ticket. I setup a webhook for jira and calling freshdesk API to add ticket there.
my problem is when I update ticket it jira it'd triggering my webhook and create a ticket in freshdesk but freshdesk again posting it back to jira and it's working like an infinitloop.
any idea how i can fix this?

It sounds like you have two triggers:
1. Jira update -> new ticket in Freshdesk; and
2. Freshdesk ticket -> new issue in Jira.
Yes, that will try to create an infinite number of issues and tickets. So you have to ask yourself, "What am I trying to do?" The main thing I would ask you is which resource (Freshdesk or Jira) is the authoritative data source, and which resource is the dependant.
It could be that Jira is where bugs and feature requests are logged, and those requests trigger Freshdesk activities. In that case, you should only have a link from Jira to Freshdesk. Updating an issue in Freshdesk in this scenario is interesting, but not relevant to the Jira issue.

Related

How to get the email/name of the user that initiates a Jira Webhook

I'm working on a internal integration with Jira and I need to perform an action when a ticket is moved between boards. I've setup a Automation trigger that sends a web requeest but I'm not sure how to get the name of the user that performs the action.
Although Atlassian's docs are all over the place, I found out that there is an action object that is passed but nothing more.

How to set automatic reply with changing issue status into "In progress" as first response in Jira

We use Jira to handle client issues. When a customer raises an issue, as the first response for issues, we changes issue status into "In Progress" and send reply to customer. I need to automate this procedure.
You may use Jira Workflow post functions to set specific actions that Jira should do when some issue changes its Status.
Here is more details on this matter: https://support.atlassian.com/jira-cloud-administration/docs/configure-advanced-issue-workflows/
Also, you may search for the 3rd party Jira apps that add extra automations here:
https://marketplace.atlassian.com/search?query=automation
Thanks,
Oleh

How to fire webhook on particular status change

Hi I used webhook in JIRA and wrote the JQL query as below,
status CHANGED FROM "Waiting Security Approval" TO "Triggered FW commands"
When I use webhooks and select issues created,updated,deleted etc webhook is triggered properly and I am getting POST request in my APP.
But I get for all status change, So instead I removed all check mark and added the above mentioned JQL and in that case webhook is not fired.
How can I debug it? JIRA Version what is use is "v7.1.4"
You've misunderstood the JQL part of the Webhook - it's to narrow down the list of Issues for which a Webhook will be emitted when any of the conditions, that you've checked/selected, apply.
So, for example, you can specify (with the JQL) that you only want this Webhook to apply for Issues in Project ABC or for all Issues where you're the Assignee but it will still be only be fired on the events that you've selected in the checkbox groups.
What you need to do is create a Webhook that will fire on event "Issue updated" and when you receive it in your application check whether this update transitioned the Issue from the Status you want to the other one. If it did, do something, else ignore the Webhook.

Jenkins Pipeline, retrieve information from JIRA ticket

I was just wondering if there was anyway to retrieve information from a Jira ticket and assign it to a variable in Jenkins.
So (just an example) - I'd like to save label from a ticket as $Jira_Label
You can send a REST request to JIRA and retrieve the information, like the label, of a specified issue.
Here there is the list of the available requests you can send.

Upsource Webhooks and JIRA

I am working on automating the code review process in my team.
My objectives are:
When a review is created, assign it to two random developers
Automatically update the JIRA item, and assign them to the developers who were assigned as reviewers in Upsource
I was able to achieve objective #1 using Upsource Custom Workflows.
For the second objective, I have tried looking at Upsource Webhooks and JIRA Cloud REST API, but I fail to see how to assign a JIRA item from Upsource. JIRA's API specifies that in order to assign an item using REST, we need to create PUT request to this method:
PUT /rest/api/2/issue/{issueIdOrKey}/assignee
How can I create a PUT request from Upsource Webhooks?
How can I extract the {issueIDOrKey} from the originating Upsource review?
How can I create a PUT request from Upsource Webhooks?
Upsource webhooks send only POST requests at the moment. But I don't see how this limitation is blocking your task, because as I understand there has to be a service that'll translate Upsource payload to JIRA payload. That service should make a PUT request.
How can I extract the {issueIDOrKey} from the originating Upsource review?
Upsource provides an API for this. getReviewDetails method allows to get a list of issues associated with a given review (see this message spec).

Resources