Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error creating JIRA ticket: HTTP 400: "project is required" #641

Closed
vaibhavtupe opened this issue Jul 19, 2016 · 4 comments
Closed

Error creating JIRA ticket: HTTP 400: "project is required" #641

vaibhavtupe opened this issue Jul 19, 2016 · 4 comments

Comments

@vaibhavtupe
Copy link

Even though I am setting the jira_project property in alert rule file, getting "Error creating JIRA ticket: HTTP 400: "project is required" "

Below is the content of jira alert rule file:

alert:

  • "jira"

jira_server: https://jira.xyz.com/jira/
jira_project: Test Project
jira_issuetype: Spike
jira_account_file: /Users/elastalert/elastalert/example_rules/jira_acct.txt
jira_description: Automated Jira Ticket by ElastAlert Testing

@Qmando
Copy link
Member

Qmando commented Jul 19, 2016

The JIRA api is notorious for bad error messages. jira_server should be set to the short version of the project name, whatever that is called (like jira.foo.com/browse/PROJECT). Maybe that's why you get this error message.

@vaibhavtupe
Copy link
Author

vaibhavtupe commented Jul 20, 2016

If I am giving "jira_server: http://jira.xyz.com/jira/browse/PROJECT"
getting below error
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2019' in position 14033: ordinal not in range(128)

and for "jira_server: http://jira.xyz.com/jira/"
getting below error
Error creating JIRA ticket: HTTP 405: Method not allowed

@Qmando
Copy link
Member

Qmando commented Jul 20, 2016

oops, I meant jira_project. Sorry.

@vaibhavtupe
Copy link
Author

Great, That worked. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants