-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Added search function to jira module and bugfixes #22
Conversation
Co-Authored-By: John R Barker <john@johnrbarker.com>
Co-Authored-By: John R Barker <john@johnrbarker.com>
Co-Authored-By: John R Barker <john@johnrbarker.com>
Co-Authored-By: John R Barker <john@johnrbarker.com>
Co-Authored-By: John R Barker <john@johnrbarker.com>
Co-Authored-By: John R Barker <john@johnrbarker.com>
Please add a changelog fragment in changelogs/fragments/. (You probably have to rebase with current |
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.
thanks!
copy of ansible/ansible#68336 |
Co-Authored-By: Andrew Klychkov <aaklychkov@mail.ru>
Co-Authored-By: Andrew Klychkov <aaklychkov@mail.ru>
Co-Authored-By: Andrew Klychkov <aaklychkov@mail.ru>
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 have updated with your suggestions
I've just written to atlassian about the changes (because the module was initially added by their employee, regarding to his mail address). Hope they'll give us somebody to take a look (or anybody else from the community will test it manually, it would be ok). |
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.
and please test url = url + '&fields=' + '&fields='.join([urllib.request.pathname2url(f) for f in fields])
manually, i'm not 100% sure it works as you expect
Co-Authored-By: Andrew Klychkov <aaklychkov@mail.ru>
|
…of resuted searches from the Jira API.
Should this be rebased and squashed into a few tidy commits, or will it all be squashed down on merge? |
@simonbaird on merge |
@pertoft please remove version_added. it'll live separatly from Ansible core. There's no versioning policy in community.general yet AFAIK |
Co-Authored-By: Andrew Klychkov <aaklychkov@mail.ru>
Done |
@simonbaird are you a jira user? If yes, could you please check the module with these changes manually and confirm that all parameters work ok. |
Yeah okay, let me give it a try. |
Regarding the maxRequests param, I'd be happy to add that later in a future MR. Edit: Nevermind, I see it's added already. |
I've given |
For the error message handling change, here's a before/after for an error message returned using
So it's an improvement. Looking at that code, it might not work well if the response is valid json but the errorMessages key is not present, but I'm not sure if that's worth worrying about. |
merged into master |
@pertoft thanks for your work! |
@gundalow @felixfontein thanks for reviewing! |
Thank you all for helping! My first contribution 🤗 |
Definitely not in 2.9. Maybe in 2.10 but not sure. |
Awesome! FYI, I'm planning to use this right away to produce issue lists based on fixVersion. |
This PR appears to add a new feature. We never backport new features to stable releases. So you'll need to wait for Ansible 2.10 to be released. |
I updated the error handling in #311 |
SUMMARY
Added Jira JQL Search support updated docs and error handling
ISSUE TYPE
COMPONENT NAME
modules/web_infrastructure/jira.py
ADDITIONAL INFORMATION