-
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] project can use different workflows, and transition ID do not scale #3821
Comments
This is why I am hesitant of the trying to implement a two-way sync between JIRA and Dojo. Lots of things only work if you have a simple and close to default workflow. Thoughts:
Syncing with JIRA could be a open source project of its own ;-) |
Yes - that's what I did, I created a new JIRA instance with different workflow transition IDs. |
The mother of all time sinks. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
this could be solved in a simple way: since transitions IDs could be different and many (transition IDs) could conduct to closed status depending on its source status, using transition name instead of its id will solve the problem. It will even work when using different workflows. Only the transition name has to be consistent in each workflow that is synced with Defectdojo. example: |
@valentijnscholten , is it possible to re-open this one? I could add the code for this one if it gets approved. Thanks |
We need an admin to reopen @mtesauro |
@devsecopsale If you want to put in a PR to make the change you are proposing, I don't have issue with that. |
Thank you. I'm currently testing it. I'll touch base once I have the PR. |
I see 2 fails: 1 (security) I believe is because I'm changing settings.dist.py: I only added an env variable. For the other error (unit test), I can't see what exactly is failing. Couldn't find any error message |
I believe the close transition name should be a property of the jira_instance, not an environment variable. Different instances can have different closing transition names. |
We're currently testing out Dryrun Security's tool in a GHA so don't worry about the failure of "Configured Sensitive Files Analyzer" as we're still working with Dryrun Security on those tests
I agree with @valentijnscholten here - since DefectDojo supports multiple Jira instances which don't necessarily have to be configured similarly (e.g. company acquires another company and inherits a Jira instance) so configuring that globally is likely to cause issues. |
I see your point. It will take me some time to do that. I'll try to have it done during March. |
Is your feature request related to a problem? Please describe
Projects can use different workflows, or they can change unexpectedly.
Whenever this happens, you would notice things such as
In this case, it related to a transition moving to "Open".
Describe the solution you'd like
A way that's not dependent on transition ID, or a more agnostic way. Not sure what.
The text was updated successfully, but these errors were encountered: