-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Since we don't support user list manipulation by using lists of email addresses yet, present user names instead of email addresses (note: username _may_ also be an email address in Jira) when rendering lists of users. For assignee and fields that are single users, we do support assigning by email address since we search Jira for the username.
- Loading branch information
Showing
3 changed files
with
8 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -356,8 +356,8 @@ | |
{'name': 'Option2', 'value': 'option_two'}], | ||
'customfield_1234570': [{'name': 'Version1', 'value': 'version_one'}, | ||
{'name': 'Version2', 'value': 'version_two'}], | ||
'customfield_1234571': [{'key': 'user1', 'displayName': 'One', 'emailAddress': '[email protected]'}, | ||
{'key': 'user2', 'displayName': 'Two', 'emailAddress': '[email protected]'}], | ||
'customfield_1234571': [{'key': 'user1', 'name': 'user-one', 'displayName': 'One', 'emailAddress': '[email protected]'}, | ||
{'key': 'user2', 'name': '[email protected]', 'displayName': 'Two', 'emailAddress': '[email protected]'}], | ||
'customfield_1234572': ['one', 'two', 'three'], | ||
'customfield_1234573': [{'name': 'group1'}, {'name': 'group2'}], | ||
'customfield_1234574': ['one', 2.0], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -81,8 +81,9 @@ def test_render_code_override(): | |
# Array of Versions (names), | ||
pytest.param('customfield_1234570', 'Array of Versions', 'Version1, Version2'), | ||
|
||
# Array of Users (email addresses), | ||
pytest.param('customfield_1234571', 'Array of Users', '[email protected], [email protected]'), | ||
# Array of Users (user names), | ||
# TODO: Support setting arrays of users by email address | ||
pytest.param('customfield_1234571', 'Array of Users', 'user-one, [email protected]'), | ||
|
||
# Array of strings | ||
pytest.param('customfield_1234572', 'Array of Strings', 'one, two, three'), | ||
|