-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Jira Epic Mapping: Support for the removal of Epic Name
custom fields
#11690
Conversation
DryRun Security SummaryThe pull request focuses on updating and improving JIRA integration functionality in DefectDojo, including API test cases, handling of "next-gen" issues, and epic creation/update features, while also addressing security concerns related to cookie vulnerabilities and API endpoints. Expand for full summarySummary: The code changes in this pull request primarily focus on updates and improvements to the JIRA integration functionality within the DefectDojo application. The changes include updates to the JIRA API test cases, handling of "next-gen" JIRA issues, and enhancements to the JIRA epic creation and update functionality. From an application security perspective, the changes do not introduce any obvious security vulnerabilities, but there are a few areas that should be reviewed to ensure the continued security and reliability of the JIRA integration. The changes also include the creation of two new JIRA issues related to the "Cookie Without Secure Flag" vulnerability, which is a security issue that should be addressed. The details provided in the JIRA issues are comprehensive and include the necessary context for the security team to properly triage and resolve the findings. Files Changed:
Code AnalysisWe ran |
DryRun Security SummaryThe code changes improve JIRA integration in Defect Dojo by enhancing exception handling for next-gen issues, updating epic functionality, and adding field validation checks to ensure more reliable and flexible JIRA issue management. Expand for full summarySummary: The code changes in this pull request are focused on improving the handling of JIRA issues for Defect Dojo findings and finding groups. The key changes include:
From an application security perspective, these changes appear to be focused on improving the reliability and robustness of the JIRA integration functionality within Defect Dojo. Handling exceptions and edge cases, as well as making the integration more flexible and configurable, helps to ensure that the integration can continue to function even when encountering unexpected situations. Files Changed:
Code AnalysisWe ran |
When attempting to create an Epic in Jira, this error was raised:
"Field 'customfield_xyz' cannot be set. It is not on the appropriate screen, or unknown."
The Jira integration needs a custom_field value for 'Epic Name'. However, Jira Project settings might not actually use 'Epic Name' as a field when creating Epics. Atlassian made a change in August 2023 which combined the 'Epic Name' and 'Epic Summary' fields.
Newer Jira Projects might not use this field when creating Epics by default, which results in this error message. It looks like they've just changed the default metadata required for Epic creation. They've left things so that older Projects and API integrations will continue to work, but newer Projects have a different set of content required to create an issue by default.
In addition to this new change, Atlassion has also changed that way that "next-gen" issues can be added to epics, so we must support both. The error raised there is:
[sc-10058]