# Unable to create a ticket from alert manager to jira

**URL:** <https://discuss.prometheus.io/t/unable-to-create-a-ticket-from-alert-manager-to-jira/2133>\
**Category:** Exporters and Metrics\
**Created:** [February 1, 2024, 5:53am UTC](https://discuss.prometheus.io/t/unable-to-create-a-ticket-from-alert-manager-to-jira/2133 "2024-02-01T05:53:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![akinuk](https://avatars.discourse-cdn.com/v4/letter/a/90ced4/32.png) [@akinuk](https://discuss.prometheus.io/u/akinuk)\
**Post date:** [February 1, 2024, 5:53am UTC](https://discuss.prometheus.io/t/unable-to-create-a-ticket-from-alert-manager-to-jira/2133/1 "2024-02-01T05:53:54Z")

</div>

Well i am able to create a ticket with https://{{{{ jira\_url }}}}/rest/api/2/issue/ using postman and curl but unable to do it using alert manager in prometheus.

I am trying to configure alertmanager using the following provided text in the alert\_manager.yml

global:  
resolve\_timeout: 5m  
templates:

- ‘/etc/alert\_manager/templates/jira\_custom\_template.tmpl’  
route:  
group\_by: [‘alertname’]  
group\_wait: 10s  
group\_interval: 10s  
repeat\_interval: 4h  
receiver: ‘jira-webhook’  
routes:
- match:  
severity: “critical”  
receiver: ‘jira-webhook’  
receivers:
- name: ‘jira-webhook’  
webhook\_configs:
- url: ‘https://{{{{ jira\_url }}}}/rest/api/2/issue/’  
http\_config:  
basic\_auth:  
username: ‘{{{{ jira\_user\_name }}}}’  
password: ‘{{{{ jira\_api\_token }}}}’  
send\_resolved: true

inhibit\_rules:

- source\_match:  
severity: ‘critical’  
target\_match:  
severity: ‘warning’  
equal: [‘alertname’, ‘dev’, ‘instance’]  
For some reason, it says it can find jira\_custom\_template.tmpl and it’s complaining about project key not found. Could you please help me. Any help will be appreciated.

---

<div class="post-metadata">

**Author:** ![salessandri](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.prometheus.io/salessandri/32/814_2.png) [@salessandri](https://discuss.prometheus.io/u/salessandri)\
**Post date:** [February 22, 2024, 4:22am UTC](https://discuss.prometheus.io/t/unable-to-create-a-ticket-from-alert-manager-to-jira/2133/2 "2024-02-22T04:22:54Z")

</div>

This is not going to work the way you are attempting to do it. They payload expected by the [JIRA Create Issue API Endpoint](https://developer.atlassian.com/server/jira/platform/jira-rest-api-examples/#creating-an-issue-using-a-project-key-and-field-names) is completely different from the one sent by the Alertmanager ([see docs](https://prometheus.io/docs/alerting/latest/configuration/#webhook_config)).

You can use something like [JIRAlert](https://github.com/prometheus-community/jiralert): an intermediary service that is able to handle the alertmanager payload and translate into appropriate JIRA API calls

---

<div class="post-metadata">

**Author:** ![akinuk](https://avatars.discourse-cdn.com/v4/letter/a/90ced4/32.png) [@akinuk](https://discuss.prometheus.io/u/akinuk)\
**Post date:** [February 22, 2024, 6:28am UTC](https://discuss.prometheus.io/t/unable-to-create-a-ticket-from-alert-manager-to-jira/2133/3 "2024-02-22T06:28:53Z")

</div>

Thanks for replying. Yes, after going through the document, I realised what I was doing. To achieve what I want from it, I went and created my own service to do the job.
