Skip to content
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

Allow _get_user_accountid to find "Unassigned" and "Automatic" users. #1152

Merged
merged 3 commits into from Oct 17, 2021

Conversation

adehad
Copy link
Collaborator

@adehad adehad commented Sep 18, 2021

Replaces: #902 , #1088

adehad and others added 3 commits September 18, 2021 14:26
Return None, -1, and "-1" back from _get_user_accountid to allow
`assign_issue` to do that as well.

Co-Authored-By: Byron Peebles <17276623+truthbyron@users.noreply.github.com>
Co-Authored-By: pari <57524256+patrick-ringl-by@users.noreply.github.com>
@@ -162,6 +162,10 @@ Reassign an issue::
# requires issue assign permission, which is different from issue editing permission!
jira.assign_issue(issue, 'newassignee')

If you want to unassign it again, just do::

jira.assign_issue(issue, None)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would it make sense to clarify it has a return value?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see the examples as more of a quick-start guide, that can help someone understand what features are available, with the function docstrings being the ground truth that explain the full syntax of how the function should be called and the return types.

That said, there should be a link to the function definition in the docs. I'll make a separate PR with that in

@adehad adehad changed the title Allow _get_user_accountid to "find" Unassigned and Automatic "users". Allow _get_user_accountid to find "Unassigned" and "Automatic" users. Oct 17, 2021
@adehad adehad merged commit df8a6a9 into main Oct 17, 2021
@adehad adehad deleted the bugfix/support_unassigned_and_automatic branch October 17, 2021 19:32
@adehad adehad linked an issue Oct 29, 2021 that may be closed by this pull request
svermeulen pushed a commit to svermeulen/jira that referenced this pull request Oct 31, 2021
…pycontribs#1152)

Return None, -1, and "-1" back from _get_user_accountid to allow
`assign_issue` to do that as well.

Co-authored-by: Byron Peebles <17276623+truthbyron@users.noreply.github.com>
Co-authored-by: pari <patrick.ringl@blueyonder.com>
Co-authored-by: pari <57524256+patrick-ringl-by@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot assign issue to user None anymore
3 participants