-
-
Notifications
You must be signed in to change notification settings - Fork 887
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
Fix using str as issue type with create_issue when issue type with that name exists in many projects #1448
Fix using str as issue type with create_issue when issue type with that name exists in many projects #1448
Conversation
…at name exists in many projects
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome stuff, one minor comment
I'll also try and write up a test case for this before we merge (want to set a better standard in this project moving forward)
There is a devcontainer that might help you automagically get setup with CI in case you want to have a go too.
I am sharing my experience in setting up the CI for your information/posterity below. I am on Ubuntu 20.04 It's great that you are working on improving the project quality. Thank you very much for the quick replies and work.
|
I don't know why CI is failing, it does not seem related to my changes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know why CI is failing, it does not seem related to my changes
yup don't worry about that, just a problem with github itself, we can't share secrets to pull requests so that fails
Test case looks good, ideally we would want a case where we have two issue types for different projects, but we don't have python functions for that yet, so just some technical debt we have for now
Thanks for sharing you troubles with the devcontainer, I really need to get to writing a page on using it, can I confirm if those dependencies needed to be installed inside the container?
Thanks for merging!
Are we talking about the same thing? I just ran the container |
Sorry my bad, I was thinking of: https://github.com/pycontribs/jira/blob/main/.devcontainer/Dockerfile |
Fixes #1444
#1445 does solve the issue when providing the ID, but it is still not possible, as it was before, to provide a string like so:
This is because issue_type_by_name does not take the project into consideration and thus will only work if the issuetype name exists only once across all projects in the Jira instance.
This situation is more frequent when using the team-managed projects that use their own issue types instead of sharing the standard ones.
I was not able to setup CI unfortunately, but I tested by calling my new code from another project which exhibited #1444