I have task for automating ticket assignee on Jira using Azure logic app. When new ticket is created Azure logic app will trigger it and assign ticket to a user.
I tried using the HTTP connector to update the ticket assignee but I got Bad Request
URL:
https://company.atlassian.net/rest/api/2/{issue_Key}
Body:
"fields": {
"assignee": {
"name": "employee name"
}
}
}
2
Answers
I don’t know how it is done via the API.
I used JSM automations to solve the problem.
I created an automation within JSM which will update the ticket when it is moved to active and also syncs the assignee.
Maybe you can try something like that 🙂
After reproducing from my end, I could get this work only after including the
accountId
along withemailAddress
in the request body. Below is the complete request body in my logic app flow.Results:
In Logic App run:
In Jira dashboard:
Below is the complete code of my logic app