Hi!
I'm trying to setup automation rule which will be creating or editing existing Jira ticket based on incoming webhook data.
I created a rule with 'Incoming webhook' trigger and I'm able to catch incoming data to configured webhook. Example data for webhook looks like:
{
"title":"Test 1",
"ticketID":"78229s",
"description":"Description",
}
Logic for my rule should looks like below:
1. When rule will receive data find if exist ticket based on JQL: some_text_field ~ ticketID_value_from_webhook
2. If ticket don't exist -> create new ticket
3. If ticket exist -> update values in ticket based on data from webhook.
How I can create "check if ticket exist" logic? I'm stuck on it and I don't know how I can achieve this.
Regards,
Seba