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

Adding Priority Argument to create_jira_issue Fails #59

Open
pjain-nw opened this issue Jan 9, 2020 · 0 comments
Open

Adding Priority Argument to create_jira_issue Fails #59

pjain-nw opened this issue Jan 9, 2020 · 0 comments

Comments

@pjain-nw
Copy link

pjain-nw commented Jan 9, 2020

When using pysnyk to create a Jira issue with priority as an argument (integer 1-5, with 1 being highest), the response always results in a 422.
jira_issue = project.jira_issues.create( vuln.id, { "project": {"id": config.JIRA.PROJECT_ID}, "issuetype": {"id": config.JIRA.ISSUE_TYPE_ID}, "summary": f"{project.name} - {vuln.title} in {vuln.package}", "description": generate_jira_description(project.id, vuln), "priority": determine_jira_priority(vuln.severity, vuln.cvssScore) }, )
However, the UI manages to set the designated priority successfully.
Screen Shot 2020-01-08 at 6 37 57 PM
Screen Shot 2020-01-08 at 6 38 07 PM

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

1 participant