2

While creating JIRA alert using ElastAlert library facing issue

ERROR:root:Error while running alert jira: Error creating JIRA ticket: HTTP 400: "project is required"

Though I have configured the jira_project property

below is content of my rule.yaml cofig file.

jira_server: URL

jira_project: Test Project

jira_issuetype: Bug

jira_account_file: FilePath

jira_description: Automated Jira Ticket by ElastAlert

Vaibhav Tupe
  • 33
  • 1
  • 7
  • I haven't used elastalert yet, but I'd try with the project key instead of the project name. – GlennV Jul 20 '16 at 12:52

1 Answers1

0

So from this discussion(https://github.com/Yelp/elastalert/issues/641) got to know that for project name, we have to enter the short name of the project, for example (jira.xyz.com/jira/browse/TP)

So the correct way to put the properties is as below:

jira_server: https://jira.xyz.com/jira

jira_project: TP

For complete example on creating email and JIRA alerts refer: http://vaibhavtupe.blogspot.com/2016/07/elasticsearch-jira-alert-and-email.html

Vaibhav Tupe
  • 33
  • 1
  • 7