-
Notifications
You must be signed in to change notification settings - Fork 32
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
Priority field not set #383
Comments
We added explicit support for priorities recently: reload/jira-security-issue#67. The code now defaults to the “Undecided” priority instead of letting Jira assign a priority itself. Do you have an “Undecided” priority in your project? Maybe our assumption that such priority always exists is wrong. If you don't have an “Undecided” priority, you can specify another priority with the |
Hi @arnested, Thank you for the prompt reply! we default our JIRAs to priority "High". We don't use "Undecided." I think letting Jira assign priority might be more appropriate. |
Our problem was Jira changed the way it assigned the priority. It used to give me issues "Undecided" but then suddenly changed to "Minor". We are alerted of security issues with priority Undecided and then assign a priority ourselves when we have looked into the issue. Jiras sudden change resulted in us missing out on new security issues for about a week before we discovered the problem. |
Was the change in on premise vs Jira cloud offering? or the API v2 vs v3? My understanding v3 is still in beta. |
Hi @arnested, Is it possible to use a version before the recent change was made? we are currently using 1.x Thanks! |
I think using For your info, I intend to go back to not setting a priority (but keep the option to set one using the environment). But I/we are quite busy currently, so I can't promise when we'll get around to it. |
Hi @JimmyAlkhouri, I believe we have resolved the issue now. We only set a priority if a |
Hi @arnested, Thank you for addressing it. I appreciate your help! |
I'm getting a priority field not set error:
In JiraSecurityIssue.php line 217:
[RuntimeException]
Could not create issue: CURL HTTP Request Failed: Status Code : 400, URL:https://companyname.atlassian.net/rest/api/2/issue
Error Message : {"errorMessages":[],"errors":{"priority":" Specify the Priority (name) in the string format"}}
Exception trace:
at /opt/ghsec-jira/vendor/reload/jira-security-issue/src/JiraSecurityIssue.php:217
Reload\JiraSecurityIssue->ensure() at /opt/ghsec-jira/src/SyncCommand.php:100
GitHubSecurityJira\SyncCommand->execute() at /opt/ghsec-jira/vendor/symfony/console/Command/Command.php:298
Symfony\Component\Console\Command\Command->run() at /opt/ghsec-jira/vendor/symfony/console/Application.php:1040
Symfony\Component\Console\Application->doRunCommand() at /opt/ghsec-jira/vendor/symfony/console/Application.php:301
Symfony\Component\Console\Application->doRun() at /opt/ghsec-jira/vendor/symfony/console/Application.php:171
Symfony\Component\Console\Application->run() at /opt/ghsec-jira/bin/ghsec-jira:18
Here are my configuration:
- name: "Sync security alerts to Jira issues"
uses: reload/github-security-jira@v1.x
env:
SECURITY_TOKEN: ***
JIRA_TOKEN: ***
JIRA_HOST: ***
JIRA_USER: ***
JIRA_ISSUE_TYPE: Story
JIRA_PROJECT: ***
JIRA_ISSUE_LABELS: DEP_ISSUE
I'm wondering if others are experiencing the same issue or the last bot update caused it by any chance?
Thanks!
The text was updated successfully, but these errors were encountered: