partition
stringclasses
3 values
func_name
stringlengths
1
134
docstring
stringlengths
1
46.9k
path
stringlengths
4
223
original_string
stringlengths
75
104k
code
stringlengths
75
104k
docstring_tokens
listlengths
1
1.97k
repo
stringlengths
7
55
language
stringclasses
1 value
url
stringlengths
87
315
code_tokens
listlengths
19
28.4k
sha
stringlengths
40
40
train
Jira.add_user_to_group
Add given user to a group :param username: str :param group_name: str :return: Current state of the group
atlassian/jira.py
def add_user_to_group(self, username, group_name): """ Add given user to a group :param username: str :param group_name: str :return: Current state of the group """ url = 'rest/api/2/group/user' params = {'groupname': group_name} data = {'name': u...
def add_user_to_group(self, username, group_name): """ Add given user to a group :param username: str :param group_name: str :return: Current state of the group """ url = 'rest/api/2/group/user' params = {'groupname': group_name} data = {'name': u...
[ "Add", "given", "user", "to", "a", "group" ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/jira.py#L504-L516
[ "def", "add_user_to_group", "(", "self", ",", "username", ",", "group_name", ")", ":", "url", "=", "'rest/api/2/group/user'", "params", "=", "{", "'groupname'", ":", "group_name", "}", "data", "=", "{", "'name'", ":", "username", "}", "return", "self", ".", ...
540d269905c3e7547b666fe30c647b2d512cf358
train
Jira.remove_user_from_group
Remove given user from a group :param username: str :param group_name: str :return:
atlassian/jira.py
def remove_user_from_group(self, username, group_name): """ Remove given user from a group :param username: str :param group_name: str :return: """ log.warning('Removing user from a group...') url = 'rest/api/2/group/user' params = {'groupname': g...
def remove_user_from_group(self, username, group_name): """ Remove given user from a group :param username: str :param group_name: str :return: """ log.warning('Removing user from a group...') url = 'rest/api/2/group/user' params = {'groupname': g...
[ "Remove", "given", "user", "from", "a", "group" ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/jira.py#L518-L530
[ "def", "remove_user_from_group", "(", "self", ",", "username", ",", "group_name", ")", ":", "log", ".", "warning", "(", "'Removing user from a group...'", ")", "url", "=", "'rest/api/2/group/user'", "params", "=", "{", "'groupname'", ":", "group_name", ",", "'user...
540d269905c3e7547b666fe30c647b2d512cf358
train
Jira.issue_add_comment
Add comment into Jira issue :param issue_key: :param comment: :param visibility: OPTIONAL :return:
atlassian/jira.py
def issue_add_comment(self, issue_key, comment, visibility=None): """ Add comment into Jira issue :param issue_key: :param comment: :param visibility: OPTIONAL :return: """ url = 'rest/api/2/issue/{issueIdOrKey}/comment'.format(issueIdOrKey=issue_key) ...
def issue_add_comment(self, issue_key, comment, visibility=None): """ Add comment into Jira issue :param issue_key: :param comment: :param visibility: OPTIONAL :return: """ url = 'rest/api/2/issue/{issueIdOrKey}/comment'.format(issueIdOrKey=issue_key) ...
[ "Add", "comment", "into", "Jira", "issue", ":", "param", "issue_key", ":", ":", "param", "comment", ":", ":", "param", "visibility", ":", "OPTIONAL", ":", "return", ":" ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/jira.py#L580-L592
[ "def", "issue_add_comment", "(", "self", ",", "issue_key", ",", "comment", ",", "visibility", "=", "None", ")", ":", "url", "=", "'rest/api/2/issue/{issueIdOrKey}/comment'", ".", "format", "(", "issueIdOrKey", "=", "issue_key", ")", "data", "=", "{", "'body'", ...
540d269905c3e7547b666fe30c647b2d512cf358
train
Jira.add_attachment
Add attachment to Issue :param issue_key: str :param filename: str, name, if file in current directory or full path to file
atlassian/jira.py
def add_attachment(self, issue_key, filename): """ Add attachment to Issue :param issue_key: str :param filename: str, name, if file in current directory or full path to file """ log.warning('Adding attachment...') headers = {'X-Atlassian-Token': 'no-check'} ...
def add_attachment(self, issue_key, filename): """ Add attachment to Issue :param issue_key: str :param filename: str, name, if file in current directory or full path to file """ log.warning('Adding attachment...') headers = {'X-Atlassian-Token': 'no-check'} ...
[ "Add", "attachment", "to", "Issue" ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/jira.py#L594-L607
[ "def", "add_attachment", "(", "self", ",", "issue_key", ",", "filename", ")", ":", "log", ".", "warning", "(", "'Adding attachment...'", ")", "headers", "=", "{", "'X-Atlassian-Token'", ":", "'no-check'", "}", "with", "open", "(", "filename", ",", "'rb'", ")...
540d269905c3e7547b666fe30c647b2d512cf358
train
Jira.get_issue_remotelinks
Compatibility naming method with get_issue_remote_links()
atlassian/jira.py
def get_issue_remotelinks(self, issue_key, global_id=None, internal_id=None): """ Compatibility naming method with get_issue_remote_links() """ return self.get_issue_remote_links(issue_key, global_id, internal_id)
def get_issue_remotelinks(self, issue_key, global_id=None, internal_id=None): """ Compatibility naming method with get_issue_remote_links() """ return self.get_issue_remote_links(issue_key, global_id, internal_id)
[ "Compatibility", "naming", "method", "with", "get_issue_remote_links", "()" ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/jira.py#L609-L613
[ "def", "get_issue_remotelinks", "(", "self", ",", "issue_key", ",", "global_id", "=", "None", ",", "internal_id", "=", "None", ")", ":", "return", "self", ".", "get_issue_remote_links", "(", "issue_key", ",", "global_id", ",", "internal_id", ")" ]
540d269905c3e7547b666fe30c647b2d512cf358
train
Jira.get_issue_remote_links
Finding all Remote Links on an issue, also with filtering by Global ID and internal ID :param issue_key: :param global_id: str :param internal_id: str :return:
atlassian/jira.py
def get_issue_remote_links(self, issue_key, global_id=None, internal_id=None): """ Finding all Remote Links on an issue, also with filtering by Global ID and internal ID :param issue_key: :param global_id: str :param internal_id: str :return: """ url = 're...
def get_issue_remote_links(self, issue_key, global_id=None, internal_id=None): """ Finding all Remote Links on an issue, also with filtering by Global ID and internal ID :param issue_key: :param global_id: str :param internal_id: str :return: """ url = 're...
[ "Finding", "all", "Remote", "Links", "on", "an", "issue", "also", "with", "filtering", "by", "Global", "ID", "and", "internal", "ID", ":", "param", "issue_key", ":", ":", "param", "global_id", ":", "str", ":", "param", "internal_id", ":", "str", ":", "re...
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/jira.py#L615-L629
[ "def", "get_issue_remote_links", "(", "self", ",", "issue_key", ",", "global_id", "=", "None", ",", "internal_id", "=", "None", ")", ":", "url", "=", "'rest/api/2/issue/{issue_key}/remotelink'", ".", "format", "(", "issue_key", "=", "issue_key", ")", "params", "...
540d269905c3e7547b666fe30c647b2d512cf358
train
Jira.create_or_update_issue_remote_links
Add Remote Link to Issue, update url if global_id is passed :param issue_key: str :param link_url: str :param title: str :param global_id: str, OPTIONAL: :param relationship: str, OPTIONAL: Default by built-in method: 'Web Link'
atlassian/jira.py
def create_or_update_issue_remote_links(self, issue_key, link_url, title, global_id=None, relationship=None): """ Add Remote Link to Issue, update url if global_id is passed :param issue_key: str :param link_url: str :param title: str :param global_id: str, OPTIONAL: ...
def create_or_update_issue_remote_links(self, issue_key, link_url, title, global_id=None, relationship=None): """ Add Remote Link to Issue, update url if global_id is passed :param issue_key: str :param link_url: str :param title: str :param global_id: str, OPTIONAL: ...
[ "Add", "Remote", "Link", "to", "Issue", "update", "url", "if", "global_id", "is", "passed", ":", "param", "issue_key", ":", "str", ":", "param", "link_url", ":", "str", ":", "param", "title", ":", "str", ":", "param", "global_id", ":", "str", "OPTIONAL",...
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/jira.py#L631-L646
[ "def", "create_or_update_issue_remote_links", "(", "self", ",", "issue_key", ",", "link_url", ",", "title", ",", "global_id", "=", "None", ",", "relationship", "=", "None", ")", ":", "url", "=", "'rest/api/2/issue/{issue_key}/remotelink'", ".", "format", "(", "iss...
540d269905c3e7547b666fe30c647b2d512cf358
train
Jira.update_issue_remote_link_by_id
Update existing Remote Link on Issue :param issue_key: str :param link_id: str :param url: str :param title: str :param global_id: str, OPTIONAL: :param relationship: str, Optional. Default by built-in method: 'Web Link'
atlassian/jira.py
def update_issue_remote_link_by_id(self, issue_key, link_id, url, title, global_id=None, relationship=None): """ Update existing Remote Link on Issue :param issue_key: str :param link_id: str :param url: str :param title: str :param global_id: str, OPTIONAL: ...
def update_issue_remote_link_by_id(self, issue_key, link_id, url, title, global_id=None, relationship=None): """ Update existing Remote Link on Issue :param issue_key: str :param link_id: str :param url: str :param title: str :param global_id: str, OPTIONAL: ...
[ "Update", "existing", "Remote", "Link", "on", "Issue", ":", "param", "issue_key", ":", "str", ":", "param", "link_id", ":", "str", ":", "param", "url", ":", "str", ":", "param", "title", ":", "str", ":", "param", "global_id", ":", "str", "OPTIONAL", ":...
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/jira.py#L652-L669
[ "def", "update_issue_remote_link_by_id", "(", "self", ",", "issue_key", ",", "link_id", ",", "url", ",", "title", ",", "global_id", "=", "None", ",", "relationship", "=", "None", ")", ":", "data", "=", "{", "'object'", ":", "{", "'url'", ":", "url", ",",...
540d269905c3e7547b666fe30c647b2d512cf358
train
Jira.delete_issue_remote_link_by_id
Deletes Remote Link on Issue :param issue_key: str :param link_id: str
atlassian/jira.py
def delete_issue_remote_link_by_id(self, issue_key, link_id): """ Deletes Remote Link on Issue :param issue_key: str :param link_id: str """ url = 'rest/api/2/issue/{issue_key}/remotelink/{link_id}'.format(issue_key=issue_key, link_id=link_id) return self.delete(u...
def delete_issue_remote_link_by_id(self, issue_key, link_id): """ Deletes Remote Link on Issue :param issue_key: str :param link_id: str """ url = 'rest/api/2/issue/{issue_key}/remotelink/{link_id}'.format(issue_key=issue_key, link_id=link_id) return self.delete(u...
[ "Deletes", "Remote", "Link", "on", "Issue", ":", "param", "issue_key", ":", "str", ":", "param", "link_id", ":", "str" ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/jira.py#L671-L678
[ "def", "delete_issue_remote_link_by_id", "(", "self", ",", "issue_key", ",", "link_id", ")", ":", "url", "=", "'rest/api/2/issue/{issue_key}/remotelink/{link_id}'", ".", "format", "(", "issue_key", "=", "issue_key", ",", "link_id", "=", "link_id", ")", "return", "se...
540d269905c3e7547b666fe30c647b2d512cf358
train
Jira.create_issue_link_type
Create a new issue link type. :param outward: :param inward: :param link_type_name: :return:
atlassian/jira.py
def create_issue_link_type(self, link_type_name, inward, outward): """Create a new issue link type. :param outward: :param inward: :param link_type_name: :return: """ if link_type_name.lower() in [x.lower() for x in self.get_issue_link_types_names()]: ...
def create_issue_link_type(self, link_type_name, inward, outward): """Create a new issue link type. :param outward: :param inward: :param link_type_name: :return: """ if link_type_name.lower() in [x.lower() for x in self.get_issue_link_types_names()]: ...
[ "Create", "a", "new", "issue", "link", "type", ".", ":", "param", "outward", ":", ":", "param", "inward", ":", ":", "param", "link_type_name", ":", ":", "return", ":" ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/jira.py#L735-L750
[ "def", "create_issue_link_type", "(", "self", ",", "link_type_name", ",", "inward", ",", "outward", ")", ":", "if", "link_type_name", ".", "lower", "(", ")", "in", "[", "x", ".", "lower", "(", ")", "for", "x", "in", "self", ".", "get_issue_link_types_names...
540d269905c3e7547b666fe30c647b2d512cf358
train
Jira.get_issue_link_type
Returns for a given issue link type id all information about this issue link type.
atlassian/jira.py
def get_issue_link_type(self, issue_link_type_id): """Returns for a given issue link type id all information about this issue link type. """ url = 'rest/api/2/issueLinkType/{issueLinkTypeId}'.format(issueLinkTypeId=issue_link_type_id) return self.get(url)
def get_issue_link_type(self, issue_link_type_id): """Returns for a given issue link type id all information about this issue link type. """ url = 'rest/api/2/issueLinkType/{issueLinkTypeId}'.format(issueLinkTypeId=issue_link_type_id) return self.get(url)
[ "Returns", "for", "a", "given", "issue", "link", "type", "id", "all", "information", "about", "this", "issue", "link", "type", "." ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/jira.py#L752-L756
[ "def", "get_issue_link_type", "(", "self", ",", "issue_link_type_id", ")", ":", "url", "=", "'rest/api/2/issueLinkType/{issueLinkTypeId}'", ".", "format", "(", "issueLinkTypeId", "=", "issue_link_type_id", ")", "return", "self", ".", "get", "(", "url", ")" ]
540d269905c3e7547b666fe30c647b2d512cf358
train
Jira.delete_issue_link_type
Delete the specified issue link type.
atlassian/jira.py
def delete_issue_link_type(self, issue_link_type_id): """Delete the specified issue link type.""" url = 'rest/api/2/issueLinkType/{issueLinkTypeId}'.format(issueLinkTypeId=issue_link_type_id) return self.delete(url)
def delete_issue_link_type(self, issue_link_type_id): """Delete the specified issue link type.""" url = 'rest/api/2/issueLinkType/{issueLinkTypeId}'.format(issueLinkTypeId=issue_link_type_id) return self.delete(url)
[ "Delete", "the", "specified", "issue", "link", "type", "." ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/jira.py#L758-L761
[ "def", "delete_issue_link_type", "(", "self", ",", "issue_link_type_id", ")", ":", "url", "=", "'rest/api/2/issueLinkType/{issueLinkTypeId}'", ".", "format", "(", "issueLinkTypeId", "=", "issue_link_type_id", ")", "return", "self", ".", "delete", "(", "url", ")" ]
540d269905c3e7547b666fe30c647b2d512cf358
train
Jira.update_issue_link_type
Update the specified issue link type. :param issue_link_type_id: :param data: { "name": "Duplicate", "inward": "Duplicated by", "outward": "Duplicates" } :return:
atlassian/jira.py
def update_issue_link_type(self, issue_link_type_id, data): """ Update the specified issue link type. :param issue_link_type_id: :param data: { "name": "Duplicate", "inward": "Duplicated by", "outward": "Duplicat...
def update_issue_link_type(self, issue_link_type_id, data): """ Update the specified issue link type. :param issue_link_type_id: :param data: { "name": "Duplicate", "inward": "Duplicated by", "outward": "Duplicat...
[ "Update", "the", "specified", "issue", "link", "type", ".", ":", "param", "issue_link_type_id", ":", ":", "param", "data", ":", "{", "name", ":", "Duplicate", "inward", ":", "Duplicated", "by", "outward", ":", "Duplicates", "}", ":", "return", ":" ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/jira.py#L763-L775
[ "def", "update_issue_link_type", "(", "self", ",", "issue_link_type_id", ",", "data", ")", ":", "url", "=", "'rest/api/2/issueLinkType/{issueLinkTypeId}'", ".", "format", "(", "issueLinkTypeId", "=", "issue_link_type_id", ")", "return", "self", ".", "put", "(", "url...
540d269905c3e7547b666fe30c647b2d512cf358
train
Jira.get_component_related_issues
Returns counts of issues related to this component. :param component_id: :return:
atlassian/jira.py
def get_component_related_issues(self, component_id): """ Returns counts of issues related to this component. :param component_id: :return: """ url = 'rest/api/2/component/{component_id}/relatedIssueCounts'.format(component_id=component_id) return self.get(url)
def get_component_related_issues(self, component_id): """ Returns counts of issues related to this component. :param component_id: :return: """ url = 'rest/api/2/component/{component_id}/relatedIssueCounts'.format(component_id=component_id) return self.get(url)
[ "Returns", "counts", "of", "issues", "related", "to", "this", "component", ".", ":", "param", "component_id", ":", ":", "return", ":" ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/jira.py#L780-L787
[ "def", "get_component_related_issues", "(", "self", ",", "component_id", ")", ":", "url", "=", "'rest/api/2/component/{component_id}/relatedIssueCounts'", ".", "format", "(", "component_id", "=", "component_id", ")", "return", "self", ".", "get", "(", "url", ")" ]
540d269905c3e7547b666fe30c647b2d512cf358
train
Jira.upload_plugin
Provide plugin path for upload into Jira e.g. useful for auto deploy :param plugin_path: :return:
atlassian/jira.py
def upload_plugin(self, plugin_path): """ Provide plugin path for upload into Jira e.g. useful for auto deploy :param plugin_path: :return: """ files = { 'plugin': open(plugin_path, 'rb') } headers = { 'X-Atlassian-Token': 'nocheck'...
def upload_plugin(self, plugin_path): """ Provide plugin path for upload into Jira e.g. useful for auto deploy :param plugin_path: :return: """ files = { 'plugin': open(plugin_path, 'rb') } headers = { 'X-Atlassian-Token': 'nocheck'...
[ "Provide", "plugin", "path", "for", "upload", "into", "Jira", "e", ".", "g", ".", "useful", "for", "auto", "deploy", ":", "param", "plugin_path", ":", ":", "return", ":" ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/jira.py#L830-L845
[ "def", "upload_plugin", "(", "self", ",", "plugin_path", ")", ":", "files", "=", "{", "'plugin'", ":", "open", "(", "plugin_path", ",", "'rb'", ")", "}", "headers", "=", "{", "'X-Atlassian-Token'", ":", "'nocheck'", "}", "upm_token", "=", "self", ".", "r...
540d269905c3e7547b666fe30c647b2d512cf358
train
Jira.get_all_permissionschemes
Returns a list of all permission schemes. By default only shortened beans are returned. If you want to include permissions of all the schemes, then specify the permissions expand parameter. Permissions will be included also if you specify any other expand parameter. :param expand...
atlassian/jira.py
def get_all_permissionschemes(self, expand=None): """ Returns a list of all permission schemes. By default only shortened beans are returned. If you want to include permissions of all the schemes, then specify the permissions expand parameter. Permissions will be included...
def get_all_permissionschemes(self, expand=None): """ Returns a list of all permission schemes. By default only shortened beans are returned. If you want to include permissions of all the schemes, then specify the permissions expand parameter. Permissions will be included...
[ "Returns", "a", "list", "of", "all", "permission", "schemes", ".", "By", "default", "only", "shortened", "beans", "are", "returned", ".", "If", "you", "want", "to", "include", "permissions", "of", "all", "the", "schemes", "then", "specify", "the", "permissio...
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/jira.py#L864-L878
[ "def", "get_all_permissionschemes", "(", "self", ",", "expand", "=", "None", ")", ":", "url", "=", "'rest/api/2/permissionscheme'", "params", "=", "{", "}", "if", "expand", ":", "params", "[", "'expand'", "]", "=", "expand", "return", "(", "self", ".", "ge...
540d269905c3e7547b666fe30c647b2d512cf358
train
Jira.get_permissionscheme
Returns a list of all permission schemes. By default only shortened beans are returned. If you want to include permissions of all the schemes, then specify the permissions expand parameter. Permissions will be included also if you specify any other expand parameter. :param permis...
atlassian/jira.py
def get_permissionscheme(self, permission_id, expand=None): """ Returns a list of all permission schemes. By default only shortened beans are returned. If you want to include permissions of all the schemes, then specify the permissions expand parameter. Permissions will b...
def get_permissionscheme(self, permission_id, expand=None): """ Returns a list of all permission schemes. By default only shortened beans are returned. If you want to include permissions of all the schemes, then specify the permissions expand parameter. Permissions will b...
[ "Returns", "a", "list", "of", "all", "permission", "schemes", ".", "By", "default", "only", "shortened", "beans", "are", "returned", ".", "If", "you", "want", "to", "include", "permissions", "of", "all", "the", "schemes", "then", "specify", "the", "permissio...
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/jira.py#L880-L895
[ "def", "get_permissionscheme", "(", "self", ",", "permission_id", ",", "expand", "=", "None", ")", ":", "url", "=", "'rest/api/2/permissionscheme/{schemeID}'", ".", "format", "(", "schemeID", "=", "permission_id", ")", "params", "=", "{", "}", "if", "expand", ...
540d269905c3e7547b666fe30c647b2d512cf358
train
Jira.set_permissionscheme_grant
Creates a permission grant in a permission scheme. Example: { "holder": { "type": "group", "parameter": "jira-developers" }, "permission": "ADMINISTER_PROJECTS" } :param permission_id :param new_permission ...
atlassian/jira.py
def set_permissionscheme_grant(self, permission_id, new_permission): """ Creates a permission grant in a permission scheme. Example: { "holder": { "type": "group", "parameter": "jira-developers" }, "permission": "ADMINI...
def set_permissionscheme_grant(self, permission_id, new_permission): """ Creates a permission grant in a permission scheme. Example: { "holder": { "type": "group", "parameter": "jira-developers" }, "permission": "ADMINI...
[ "Creates", "a", "permission", "grant", "in", "a", "permission", "scheme", ".", "Example", ":" ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/jira.py#L897-L916
[ "def", "set_permissionscheme_grant", "(", "self", ",", "permission_id", ",", "new_permission", ")", ":", "url", "=", "'rest/api/2/permissionscheme/{schemeID}/permission'", ".", "format", "(", "schemeID", "=", "permission_id", ")", "return", "self", ".", "post", "(", ...
540d269905c3e7547b666fe30c647b2d512cf358
train
Jira.tempo_account_get_accounts
Get all Accounts that the logged in user has permission to browse. :param skip_archived: bool OPTIONAL: skip archived Accounts, either true or false, default value true. :param expand: bool OPTIONAL: With expanded data or not :return:
atlassian/jira.py
def tempo_account_get_accounts(self, skip_archived=None, expand=None): """ Get all Accounts that the logged in user has permission to browse. :param skip_archived: bool OPTIONAL: skip archived Accounts, either true or false, default value true. :param expand: bool OPTIONAL: With expanded...
def tempo_account_get_accounts(self, skip_archived=None, expand=None): """ Get all Accounts that the logged in user has permission to browse. :param skip_archived: bool OPTIONAL: skip archived Accounts, either true or false, default value true. :param expand: bool OPTIONAL: With expanded...
[ "Get", "all", "Accounts", "that", "the", "logged", "in", "user", "has", "permission", "to", "browse", ".", ":", "param", "skip_archived", ":", "bool", "OPTIONAL", ":", "skip", "archived", "Accounts", "either", "true", "or", "false", "default", "value", "true...
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/jira.py#L924-L937
[ "def", "tempo_account_get_accounts", "(", "self", ",", "skip_archived", "=", "None", ",", "expand", "=", "None", ")", ":", "params", "=", "{", "}", "if", "skip_archived", "is", "not", "None", ":", "params", "[", "'skipArchived'", "]", "=", "skip_archived", ...
540d269905c3e7547b666fe30c647b2d512cf358
train
Jira.tempo_account_associate_with_jira_project
The AccountLinkBean for associate Account with project Adds a link to an Account. { scopeType:PROJECT defaultAccount:boolean linkType:IMPORTED | MANUAL name:string key:string accountId:number scope:number id:...
atlassian/jira.py
def tempo_account_associate_with_jira_project(self, account_id, project_id, default_account=False, link_type='MANUAL'): """ The AccountLinkBean for associate Account with project Adds a link to an...
def tempo_account_associate_with_jira_project(self, account_id, project_id, default_account=False, link_type='MANUAL'): """ The AccountLinkBean for associate Account with project Adds a link to an...
[ "The", "AccountLinkBean", "for", "associate", "Account", "with", "project", "Adds", "a", "link", "to", "an", "Account", ".", "{", "scopeType", ":", "PROJECT", "defaultAccount", ":", "boolean", "linkType", ":", "IMPORTED", "|", "MANUAL", "name", ":", "string", ...
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/jira.py#L949-L983
[ "def", "tempo_account_associate_with_jira_project", "(", "self", ",", "account_id", ",", "project_id", ",", "default_account", "=", "False", ",", "link_type", "=", "'MANUAL'", ")", ":", "data", "=", "{", "}", "if", "account_id", ":", "data", "[", "'accountId'", ...
540d269905c3e7547b666fe30c647b2d512cf358
train
Jira.tempo_account_add_account
Creates Account, adding new Account requires the Manage Accounts Permission. :param data: String then it will convert to json :return:
atlassian/jira.py
def tempo_account_add_account(self, data=None): """ Creates Account, adding new Account requires the Manage Accounts Permission. :param data: String then it will convert to json :return: """ url = 'rest/tempo-accounts/1/account/' if data is None: retur...
def tempo_account_add_account(self, data=None): """ Creates Account, adding new Account requires the Manage Accounts Permission. :param data: String then it will convert to json :return: """ url = 'rest/tempo-accounts/1/account/' if data is None: retur...
[ "Creates", "Account", "adding", "new", "Account", "requires", "the", "Manage", "Accounts", "Permission", ".", ":", "param", "data", ":", "String", "then", "it", "will", "convert", "to", "json", ":", "return", ":" ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/jira.py#L985-L1000
[ "def", "tempo_account_add_account", "(", "self", ",", "data", "=", "None", ")", ":", "url", "=", "'rest/tempo-accounts/1/account/'", "if", "data", "is", "None", ":", "return", "\"\"\"Please, provide data e.g.\n {name: \"12312312321\",\n ...
540d269905c3e7547b666fe30c647b2d512cf358
train
Jira.tempo_account_delete_account_by_id
Delete an Account by id. Caller must have the Manage Account Permission for the Account. The Account can not be deleted if it has an AccountLinkBean. :param account_id: the id of the Account to be deleted. :return:
atlassian/jira.py
def tempo_account_delete_account_by_id(self, account_id): """ Delete an Account by id. Caller must have the Manage Account Permission for the Account. The Account can not be deleted if it has an AccountLinkBean. :param account_id: the id of the Account to be deleted. :return: ...
def tempo_account_delete_account_by_id(self, account_id): """ Delete an Account by id. Caller must have the Manage Account Permission for the Account. The Account can not be deleted if it has an AccountLinkBean. :param account_id: the id of the Account to be deleted. :return: ...
[ "Delete", "an", "Account", "by", "id", ".", "Caller", "must", "have", "the", "Manage", "Account", "Permission", "for", "the", "Account", ".", "The", "Account", "can", "not", "be", "deleted", "if", "it", "has", "an", "AccountLinkBean", ".", ":", "param", ...
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/jira.py#L1002-L1010
[ "def", "tempo_account_delete_account_by_id", "(", "self", ",", "account_id", ")", ":", "url", "=", "'rest/tempo-accounts/1/account/{id}/'", ".", "format", "(", "id", "=", "account_id", ")", "return", "self", ".", "delete", "(", "url", ")" ]
540d269905c3e7547b666fe30c647b2d512cf358
train
Jira.tempo_account_get_all_account_by_customer_id
Get un-archived Accounts by customer. The Caller must have the Browse Account permission for the Account. :param customer_id: the Customer id. :return:
atlassian/jira.py
def tempo_account_get_all_account_by_customer_id(self, customer_id): """ Get un-archived Accounts by customer. The Caller must have the Browse Account permission for the Account. :param customer_id: the Customer id. :return: """ url = 'rest/tempo-accounts/1/account/custom...
def tempo_account_get_all_account_by_customer_id(self, customer_id): """ Get un-archived Accounts by customer. The Caller must have the Browse Account permission for the Account. :param customer_id: the Customer id. :return: """ url = 'rest/tempo-accounts/1/account/custom...
[ "Get", "un", "-", "archived", "Accounts", "by", "customer", ".", "The", "Caller", "must", "have", "the", "Browse", "Account", "permission", "for", "the", "Account", ".", ":", "param", "customer_id", ":", "the", "Customer", "id", ".", ":", "return", ":" ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/jira.py#L1012-L1019
[ "def", "tempo_account_get_all_account_by_customer_id", "(", "self", ",", "customer_id", ")", ":", "url", "=", "'rest/tempo-accounts/1/account/customer/{customerId}/'", ".", "format", "(", "customerId", "=", "customer_id", ")", "return", "self", ".", "get", "(", "url", ...
540d269905c3e7547b666fe30c647b2d512cf358
train
Jira.tempo_account_get_customers
Gets all or some Attribute whose key or name contain a specific substring. Attributes can be a Category or Customer. :param query: OPTIONAL: query for search :param count_accounts: bool OPTIONAL: provide how many associated Accounts with Customer :return: list of customers
atlassian/jira.py
def tempo_account_get_customers(self, query=None, count_accounts=None): """ Gets all or some Attribute whose key or name contain a specific substring. Attributes can be a Category or Customer. :param query: OPTIONAL: query for search :param count_accounts: bool OPTIONAL: provide ...
def tempo_account_get_customers(self, query=None, count_accounts=None): """ Gets all or some Attribute whose key or name contain a specific substring. Attributes can be a Category or Customer. :param query: OPTIONAL: query for search :param count_accounts: bool OPTIONAL: provide ...
[ "Gets", "all", "or", "some", "Attribute", "whose", "key", "or", "name", "contain", "a", "specific", "substring", ".", "Attributes", "can", "be", "a", "Category", "or", "Customer", ".", ":", "param", "query", ":", "OPTIONAL", ":", "query", "for", "search", ...
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/jira.py#L1021-L1035
[ "def", "tempo_account_get_customers", "(", "self", ",", "query", "=", "None", ",", "count_accounts", "=", "None", ")", ":", "params", "=", "{", "}", "if", "query", "is", "not", "None", ":", "params", "[", "'query'", "]", "=", "query", "if", "count_accoun...
540d269905c3e7547b666fe30c647b2d512cf358
train
Jira.tempo_account_add_customer
Gets all or some Attribute whose key or name contain a specific substring. Attributes can be a Category or Customer. :param data: :return: if error will show in error log, like validation unsuccessful. If success will good.
atlassian/jira.py
def tempo_account_add_customer(self, data=None): """ Gets all or some Attribute whose key or name contain a specific substring. Attributes can be a Category or Customer. :param data: :return: if error will show in error log, like validation unsuccessful. If success will good. ...
def tempo_account_add_customer(self, data=None): """ Gets all or some Attribute whose key or name contain a specific substring. Attributes can be a Category or Customer. :param data: :return: if error will show in error log, like validation unsuccessful. If success will good. ...
[ "Gets", "all", "or", "some", "Attribute", "whose", "key", "or", "name", "contain", "a", "specific", "substring", ".", "Attributes", "can", "be", "a", "Category", "or", "Customer", ".", ":", "param", "data", ":", ":", "return", ":", "if", "error", "will",...
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/jira.py#L1037-L1050
[ "def", "tempo_account_add_customer", "(", "self", ",", "data", "=", "None", ")", ":", "if", "data", "is", "None", ":", "return", "\"\"\"Please, set the data as { isNew:boolean\n name:string\n ...
540d269905c3e7547b666fe30c647b2d512cf358
train
Jira.tempo_account_get_customer_by_id
Get Account Attribute whose key or name contain a specific substring. Attribute can be a Category or Customer. :param customer_id: id of Customer record :return: Customer info
atlassian/jira.py
def tempo_account_get_customer_by_id(self, customer_id=1): """ Get Account Attribute whose key or name contain a specific substring. Attribute can be a Category or Customer. :param customer_id: id of Customer record :return: Customer info """ url = 'rest/tempo-accounts/1/...
def tempo_account_get_customer_by_id(self, customer_id=1): """ Get Account Attribute whose key or name contain a specific substring. Attribute can be a Category or Customer. :param customer_id: id of Customer record :return: Customer info """ url = 'rest/tempo-accounts/1/...
[ "Get", "Account", "Attribute", "whose", "key", "or", "name", "contain", "a", "specific", "substring", ".", "Attribute", "can", "be", "a", "Category", "or", "Customer", ".", ":", "param", "customer_id", ":", "id", "of", "Customer", "record", ":", "return", ...
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/jira.py#L1052-L1059
[ "def", "tempo_account_get_customer_by_id", "(", "self", ",", "customer_id", "=", "1", ")", ":", "url", "=", "'rest/tempo-accounts/1/customer/{id}'", ".", "format", "(", "id", "=", "customer_id", ")", "return", "self", ".", "get", "(", "url", ")" ]
540d269905c3e7547b666fe30c647b2d512cf358
train
Jira.tempo_account_update_customer_by_id
Updates an Attribute. Caller must have Manage Account Permission. Attribute can be a Category or Customer. :param customer_id: id of Customer record :param data: format is { isNew:boolean name:string key:string ...
atlassian/jira.py
def tempo_account_update_customer_by_id(self, customer_id=1, data=None): """ Updates an Attribute. Caller must have Manage Account Permission. Attribute can be a Category or Customer. :param customer_id: id of Customer record :param data: format is { ...
def tempo_account_update_customer_by_id(self, customer_id=1, data=None): """ Updates an Attribute. Caller must have Manage Account Permission. Attribute can be a Category or Customer. :param customer_id: id of Customer record :param data: format is { ...
[ "Updates", "an", "Attribute", ".", "Caller", "must", "have", "Manage", "Account", "Permission", ".", "Attribute", "can", "be", "a", "Category", "or", "Customer", ".", ":", "param", "customer_id", ":", "id", "of", "Customer", "record", ":", "param", "data", ...
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/jira.py#L1061-L1080
[ "def", "tempo_account_update_customer_by_id", "(", "self", ",", "customer_id", "=", "1", ",", "data", "=", "None", ")", ":", "if", "data", "is", "None", ":", "return", "\"\"\"Please, set the data as { isNew:boolean\n name:string\...
540d269905c3e7547b666fe30c647b2d512cf358
train
Jira.tempo_account_delete_customer_by_id
Delete an Attribute. Caller must have Manage Account Permission. Attribute can be a Category or Customer. :param customer_id: id of Customer record :return: Customer info
atlassian/jira.py
def tempo_account_delete_customer_by_id(self, customer_id=1): """ Delete an Attribute. Caller must have Manage Account Permission. Attribute can be a Category or Customer. :param customer_id: id of Customer record :return: Customer info """ url = 'rest/tempo-accounts/1/cu...
def tempo_account_delete_customer_by_id(self, customer_id=1): """ Delete an Attribute. Caller must have Manage Account Permission. Attribute can be a Category or Customer. :param customer_id: id of Customer record :return: Customer info """ url = 'rest/tempo-accounts/1/cu...
[ "Delete", "an", "Attribute", ".", "Caller", "must", "have", "Manage", "Account", "Permission", ".", "Attribute", "can", "be", "a", "Category", "or", "Customer", ".", ":", "param", "customer_id", ":", "id", "of", "Customer", "record", ":", "return", ":", "C...
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/jira.py#L1082-L1089
[ "def", "tempo_account_delete_customer_by_id", "(", "self", ",", "customer_id", "=", "1", ")", ":", "url", "=", "'rest/tempo-accounts/1/customer/{id}'", ".", "format", "(", "id", "=", "customer_id", ")", "return", "self", ".", "delete", "(", "url", ")" ]
540d269905c3e7547b666fe30c647b2d512cf358
train
Jira.tempo_account_export_accounts
Get csv export file of Accounts from Tempo :return: csv file
atlassian/jira.py
def tempo_account_export_accounts(self): """ Get csv export file of Accounts from Tempo :return: csv file """ headers = self.form_token_headers url = 'rest/tempo-accounts/1/export' return self.get(url, headers=headers, not_json_response=True)
def tempo_account_export_accounts(self): """ Get csv export file of Accounts from Tempo :return: csv file """ headers = self.form_token_headers url = 'rest/tempo-accounts/1/export' return self.get(url, headers=headers, not_json_response=True)
[ "Get", "csv", "export", "file", "of", "Accounts", "from", "Tempo", ":", "return", ":", "csv", "file" ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/jira.py#L1091-L1098
[ "def", "tempo_account_export_accounts", "(", "self", ")", ":", "headers", "=", "self", ".", "form_token_headers", "url", "=", "'rest/tempo-accounts/1/export'", "return", "self", ".", "get", "(", "url", ",", "headers", "=", "headers", ",", "not_json_response", "=",...
540d269905c3e7547b666fe30c647b2d512cf358
train
Jira.get_all_agile_boards
Returns all boards. This only includes boards that the user has permission to view. :param board_name: :param project_key: :param board_type: :param start: :param limit: :return:
atlassian/jira.py
def get_all_agile_boards(self, board_name=None, project_key=None, board_type=None, start=0, limit=50): """ Returns all boards. This only includes boards that the user has permission to view. :param board_name: :param project_key: :param board_type: :param start: :...
def get_all_agile_boards(self, board_name=None, project_key=None, board_type=None, start=0, limit=50): """ Returns all boards. This only includes boards that the user has permission to view. :param board_name: :param project_key: :param board_type: :param start: :...
[ "Returns", "all", "boards", ".", "This", "only", "includes", "boards", "that", "the", "user", "has", "permission", "to", "view", ".", ":", "param", "board_name", ":", ":", "param", "project_key", ":", ":", "param", "board_type", ":", ":", "param", "start",...
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/jira.py#L1106-L1129
[ "def", "get_all_agile_boards", "(", "self", ",", "board_name", "=", "None", ",", "project_key", "=", "None", ",", "board_type", "=", "None", ",", "start", "=", "0", ",", "limit", "=", "50", ")", ":", "url", "=", "'rest/agile/1.0/board'", "params", "=", "...
540d269905c3e7547b666fe30c647b2d512cf358
train
Jira.get_agile_board
Get agile board info by id :param board_id: :return:
atlassian/jira.py
def get_agile_board(self, board_id): """ Get agile board info by id :param board_id: :return: """ url = 'rest/agile/1.0/board/{}'.format(str(board_id)) return self.get(url)
def get_agile_board(self, board_id): """ Get agile board info by id :param board_id: :return: """ url = 'rest/agile/1.0/board/{}'.format(str(board_id)) return self.get(url)
[ "Get", "agile", "board", "info", "by", "id", ":", "param", "board_id", ":", ":", "return", ":" ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/jira.py#L1131-L1138
[ "def", "get_agile_board", "(", "self", ",", "board_id", ")", ":", "url", "=", "'rest/agile/1.0/board/{}'", ".", "format", "(", "str", "(", "board_id", ")", ")", "return", "self", ".", "get", "(", "url", ")" ]
540d269905c3e7547b666fe30c647b2d512cf358
train
Jira.get_agile_board_configuration
Get the board configuration. The response contains the following fields: id - Id of the board. name - Name of the board. filter - Reference to the filter used by the given board. subQuery (Kanban only) - JQL subquery used by the given board. columnConfig - The column configuratio...
atlassian/jira.py
def get_agile_board_configuration(self, board_id): """ Get the board configuration. The response contains the following fields: id - Id of the board. name - Name of the board. filter - Reference to the filter used by the given board. subQuery (Kanban only) - JQL subquery ...
def get_agile_board_configuration(self, board_id): """ Get the board configuration. The response contains the following fields: id - Id of the board. name - Name of the board. filter - Reference to the filter used by the given board. subQuery (Kanban only) - JQL subquery ...
[ "Get", "the", "board", "configuration", ".", "The", "response", "contains", "the", "following", "fields", ":", "id", "-", "Id", "of", "the", "board", ".", "name", "-", "Name", "of", "the", "board", ".", "filter", "-", "Reference", "to", "the", "filter", ...
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/jira.py#L1140-L1165
[ "def", "get_agile_board_configuration", "(", "self", ",", "board_id", ")", ":", "url", "=", "'rest/agile/1.0/board/{}/configuration'", ".", "format", "(", "str", "(", "board_id", ")", ")", "return", "self", ".", "get", "(", "url", ")" ]
540d269905c3e7547b666fe30c647b2d512cf358
train
Jira.delete_agile_board
Delete agile board by id :param board_id: :return:
atlassian/jira.py
def delete_agile_board(self, board_id): """ Delete agile board by id :param board_id: :return: """ url = 'rest/agile/1.0/board/{}'.format(str(board_id)) return self.delete(url)
def delete_agile_board(self, board_id): """ Delete agile board by id :param board_id: :return: """ url = 'rest/agile/1.0/board/{}'.format(str(board_id)) return self.delete(url)
[ "Delete", "agile", "board", "by", "id", ":", "param", "board_id", ":", ":", "return", ":" ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/jira.py#L1167-L1174
[ "def", "delete_agile_board", "(", "self", ",", "board_id", ")", ":", "url", "=", "'rest/agile/1.0/board/{}'", ".", "format", "(", "str", "(", "board_id", ")", ")", "return", "self", ".", "delete", "(", "url", ")" ]
540d269905c3e7547b666fe30c647b2d512cf358
train
ServiceDesk.create_customer
Creating customer user :param full_name: str :param email: str :return: New customer
atlassian/service_desk.py
def create_customer(self, full_name, email): """ Creating customer user :param full_name: str :param email: str :return: New customer """ log.warning('Creating customer...') data = {'fullName': full_name, 'email': email} return self.post('rest/se...
def create_customer(self, full_name, email): """ Creating customer user :param full_name: str :param email: str :return: New customer """ log.warning('Creating customer...') data = {'fullName': full_name, 'email': email} return self.post('rest/se...
[ "Creating", "customer", "user" ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/service_desk.py#L38-L49
[ "def", "create_customer", "(", "self", ",", "full_name", ",", "email", ")", ":", "log", ".", "warning", "(", "'Creating customer...'", ")", "data", "=", "{", "'fullName'", ":", "full_name", ",", "'email'", ":", "email", "}", "return", "self", ".", "post", ...
540d269905c3e7547b666fe30c647b2d512cf358
train
ServiceDesk.create_customer_request
Creating customer request :param service_desk_id: str :param request_type_id: str :param values_dict: str :param raise_on_behalf_of: str :return: New request
atlassian/service_desk.py
def create_customer_request(self, service_desk_id, request_type_id, values_dict, raise_on_behalf_of=None): """ Creating customer request :param service_desk_id: str :param request_type_id: str :param values_dict: str :param raise_on_behalf_of: str :return: New re...
def create_customer_request(self, service_desk_id, request_type_id, values_dict, raise_on_behalf_of=None): """ Creating customer request :param service_desk_id: str :param request_type_id: str :param values_dict: str :param raise_on_behalf_of: str :return: New re...
[ "Creating", "customer", "request" ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/service_desk.py#L68-L88
[ "def", "create_customer_request", "(", "self", ",", "service_desk_id", ",", "request_type_id", ",", "values_dict", ",", "raise_on_behalf_of", "=", "None", ")", ":", "log", ".", "warning", "(", "'Creating request...'", ")", "data", "=", "{", "\"serviceDeskId\"", ":...
540d269905c3e7547b666fe30c647b2d512cf358
train
ServiceDesk.get_customer_request_status
Get customer request status name :param issue_id_or_key: str :return: Status name
atlassian/service_desk.py
def get_customer_request_status(self, issue_id_or_key): """ Get customer request status name :param issue_id_or_key: str :return: Status name """ request = self.get('rest/servicedeskapi/request/{}/status'.format(issue_id_or_key)).get('values') status = request[0]...
def get_customer_request_status(self, issue_id_or_key): """ Get customer request status name :param issue_id_or_key: str :return: Status name """ request = self.get('rest/servicedeskapi/request/{}/status'.format(issue_id_or_key)).get('values') status = request[0]...
[ "Get", "customer", "request", "status", "name" ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/service_desk.py#L90-L100
[ "def", "get_customer_request_status", "(", "self", ",", "issue_id_or_key", ")", ":", "request", "=", "self", ".", "get", "(", "'rest/servicedeskapi/request/{}/status'", ".", "format", "(", "issue_id_or_key", ")", ")", ".", "get", "(", "'values'", ")", "status", ...
540d269905c3e7547b666fe30c647b2d512cf358
train
ServiceDesk.get_customer_transitions
Returns a list of transitions that customers can perform on the request :param issue_id_or_key: str :return:
atlassian/service_desk.py
def get_customer_transitions(self, issue_id_or_key): """ Returns a list of transitions that customers can perform on the request :param issue_id_or_key: str :return: """ url = 'rest/servicedeskapi/request/{}/transition'.format(issue_id_or_key) return self.get(ur...
def get_customer_transitions(self, issue_id_or_key): """ Returns a list of transitions that customers can perform on the request :param issue_id_or_key: str :return: """ url = 'rest/servicedeskapi/request/{}/transition'.format(issue_id_or_key) return self.get(ur...
[ "Returns", "a", "list", "of", "transitions", "that", "customers", "can", "perform", "on", "the", "request" ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/service_desk.py#L102-L111
[ "def", "get_customer_transitions", "(", "self", ",", "issue_id_or_key", ")", ":", "url", "=", "'rest/servicedeskapi/request/{}/transition'", ".", "format", "(", "issue_id_or_key", ")", "return", "self", ".", "get", "(", "url", ",", "headers", "=", "self", ".", "...
540d269905c3e7547b666fe30c647b2d512cf358
train
ServiceDesk.get_request_participants
Get request participants :param issue_id_or_key: str :param start: OPTIONAL: int :param limit: OPTIONAL: int :return: Request participants
atlassian/service_desk.py
def get_request_participants(self, issue_id_or_key, start=0, limit=50): """ Get request participants :param issue_id_or_key: str :param start: OPTIONAL: int :param limit: OPTIONAL: int :return: Request participants """ url = 'rest/servicedeskapi/request/{...
def get_request_participants(self, issue_id_or_key, start=0, limit=50): """ Get request participants :param issue_id_or_key: str :param start: OPTIONAL: int :param limit: OPTIONAL: int :return: Request participants """ url = 'rest/servicedeskapi/request/{...
[ "Get", "request", "participants" ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/service_desk.py#L114-L130
[ "def", "get_request_participants", "(", "self", ",", "issue_id_or_key", ",", "start", "=", "0", ",", "limit", "=", "50", ")", ":", "url", "=", "'rest/servicedeskapi/request/{}/participant'", ".", "format", "(", "issue_id_or_key", ")", "params", "=", "{", "}", ...
540d269905c3e7547b666fe30c647b2d512cf358
train
ServiceDesk.add_request_participants
Add users as participants to an existing customer request The calling user must have permission to manage participants for this customer request :param issue_id_or_key: str :param users_list: list :return:
atlassian/service_desk.py
def add_request_participants(self, issue_id_or_key, users_list): """ Add users as participants to an existing customer request The calling user must have permission to manage participants for this customer request :param issue_id_or_key: str :param users_list: list :retu...
def add_request_participants(self, issue_id_or_key, users_list): """ Add users as participants to an existing customer request The calling user must have permission to manage participants for this customer request :param issue_id_or_key: str :param users_list: list :retu...
[ "Add", "users", "as", "participants", "to", "an", "existing", "customer", "request", "The", "calling", "user", "must", "have", "permission", "to", "manage", "participants", "for", "this", "customer", "request" ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/service_desk.py#L132-L144
[ "def", "add_request_participants", "(", "self", ",", "issue_id_or_key", ",", "users_list", ")", ":", "url", "=", "'rest/servicedeskapi/request/{}/participant'", ".", "format", "(", "issue_id_or_key", ")", "data", "=", "{", "'usernames'", ":", "users_list", "}", "ret...
540d269905c3e7547b666fe30c647b2d512cf358
train
ServiceDesk.remove_request_participants
Remove participants from an existing customer request The calling user must have permission to manage participants for this customer request :param issue_id_or_key: str :param users_list: list :return:
atlassian/service_desk.py
def remove_request_participants(self, issue_id_or_key, users_list): """ Remove participants from an existing customer request The calling user must have permission to manage participants for this customer request :param issue_id_or_key: str :param users_list: list :retur...
def remove_request_participants(self, issue_id_or_key, users_list): """ Remove participants from an existing customer request The calling user must have permission to manage participants for this customer request :param issue_id_or_key: str :param users_list: list :retur...
[ "Remove", "participants", "from", "an", "existing", "customer", "request", "The", "calling", "user", "must", "have", "permission", "to", "manage", "participants", "for", "this", "customer", "request" ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/service_desk.py#L146-L158
[ "def", "remove_request_participants", "(", "self", ",", "issue_id_or_key", ",", "users_list", ")", ":", "url", "=", "'rest/servicedeskapi/request/{}/participant'", ".", "format", "(", "issue_id_or_key", ")", "data", "=", "{", "'usernames'", ":", "users_list", "}", "...
540d269905c3e7547b666fe30c647b2d512cf358
train
ServiceDesk.perform_transition
Perform a customer transition for a given request and transition ID. An optional comment can be included to provide a reason for the transition. :param issue_id_or_key: str :param transition_id: str :param comment: OPTIONAL: str :return: None
atlassian/service_desk.py
def perform_transition(self, issue_id_or_key, transition_id, comment=None): """ Perform a customer transition for a given request and transition ID. An optional comment can be included to provide a reason for the transition. :param issue_id_or_key: str :param transition_id: str ...
def perform_transition(self, issue_id_or_key, transition_id, comment=None): """ Perform a customer transition for a given request and transition ID. An optional comment can be included to provide a reason for the transition. :param issue_id_or_key: str :param transition_id: str ...
[ "Perform", "a", "customer", "transition", "for", "a", "given", "request", "and", "transition", "ID", ".", "An", "optional", "comment", "can", "be", "included", "to", "provide", "a", "reason", "for", "the", "transition", "." ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/service_desk.py#L161-L175
[ "def", "perform_transition", "(", "self", ",", "issue_id_or_key", ",", "transition_id", ",", "comment", "=", "None", ")", ":", "log", ".", "warning", "(", "'Performing transition...'", ")", "data", "=", "{", "'id'", ":", "transition_id", ",", "'additionalComment...
540d269905c3e7547b666fe30c647b2d512cf358
train
ServiceDesk.create_request_comment
Creating request comment :param issue_id_or_key: str :param body: str :param public: OPTIONAL: bool (default is True) :return: New comment
atlassian/service_desk.py
def create_request_comment(self, issue_id_or_key, body, public=True): """ Creating request comment :param issue_id_or_key: str :param body: str :param public: OPTIONAL: bool (default is True) :return: New comment """ log.warning('Creating comment...') ...
def create_request_comment(self, issue_id_or_key, body, public=True): """ Creating request comment :param issue_id_or_key: str :param body: str :param public: OPTIONAL: bool (default is True) :return: New comment """ log.warning('Creating comment...') ...
[ "Creating", "request", "comment" ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/service_desk.py#L178-L190
[ "def", "create_request_comment", "(", "self", ",", "issue_id_or_key", ",", "body", ",", "public", "=", "True", ")", ":", "log", ".", "warning", "(", "'Creating comment...'", ")", "data", "=", "{", "\"body\"", ":", "body", ",", "\"public\"", ":", "public", ...
540d269905c3e7547b666fe30c647b2d512cf358
train
ServiceDesk.get_organisations
Returns a list of organizations in the Jira instance. If the user is not an agent, the resource returns a list of organizations the user is a member of. :param service_desk_id: OPTIONAL: str Get organizations from single Service Desk :param start: OPTIONAL: int The starting index of the returne...
atlassian/service_desk.py
def get_organisations(self, service_desk_id=None, start=0, limit=50): """ Returns a list of organizations in the Jira instance. If the user is not an agent, the resource returns a list of organizations the user is a member of. :param service_desk_id: OPTIONAL: str Get organizations from...
def get_organisations(self, service_desk_id=None, start=0, limit=50): """ Returns a list of organizations in the Jira instance. If the user is not an agent, the resource returns a list of organizations the user is a member of. :param service_desk_id: OPTIONAL: str Get organizations from...
[ "Returns", "a", "list", "of", "organizations", "in", "the", "Jira", "instance", ".", "If", "the", "user", "is", "not", "an", "agent", "the", "resource", "returns", "a", "list", "of", "organizations", "the", "user", "is", "a", "member", "of", "." ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/service_desk.py#L214-L237
[ "def", "get_organisations", "(", "self", ",", "service_desk_id", "=", "None", ",", "start", "=", "0", ",", "limit", "=", "50", ")", ":", "url_without_sd_id", "=", "'rest/servicedeskapi/organization'", "url_with_sd_id", "=", "'rest/servicedeskapi/servicedesk/{}/organizat...
540d269905c3e7547b666fe30c647b2d512cf358
train
ServiceDesk.get_organization
Get an organization for a given organization ID :param organization_id: str :return: Organization
atlassian/service_desk.py
def get_organization(self, organization_id): """ Get an organization for a given organization ID :param organization_id: str :return: Organization """ url = 'rest/servicedeskapi/organization/{}'.format(organization_id) return self.get(url, headers=self.experimen...
def get_organization(self, organization_id): """ Get an organization for a given organization ID :param organization_id: str :return: Organization """ url = 'rest/servicedeskapi/organization/{}'.format(organization_id) return self.get(url, headers=self.experimen...
[ "Get", "an", "organization", "for", "a", "given", "organization", "ID" ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/service_desk.py#L239-L248
[ "def", "get_organization", "(", "self", ",", "organization_id", ")", ":", "url", "=", "'rest/servicedeskapi/organization/{}'", ".", "format", "(", "organization_id", ")", "return", "self", ".", "get", "(", "url", ",", "headers", "=", "self", ".", "experimental_h...
540d269905c3e7547b666fe30c647b2d512cf358
train
ServiceDesk.get_users_in_organization
Get all the users of a specified organization :param organization_id: str :param start: OPTIONAL: int :param limit: OPTIONAL: int :return: Users list in organization
atlassian/service_desk.py
def get_users_in_organization(self, organization_id, start=0, limit=50): """ Get all the users of a specified organization :param organization_id: str :param start: OPTIONAL: int :param limit: OPTIONAL: int :return: Users list in organization """ url = 'r...
def get_users_in_organization(self, organization_id, start=0, limit=50): """ Get all the users of a specified organization :param organization_id: str :param start: OPTIONAL: int :param limit: OPTIONAL: int :return: Users list in organization """ url = 'r...
[ "Get", "all", "the", "users", "of", "a", "specified", "organization" ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/service_desk.py#L250-L266
[ "def", "get_users_in_organization", "(", "self", ",", "organization_id", ",", "start", "=", "0", ",", "limit", "=", "50", ")", ":", "url", "=", "'rest/servicedeskapi/organization/{}/user'", ".", "format", "(", "organization_id", ")", "params", "=", "{", "}", "...
540d269905c3e7547b666fe30c647b2d512cf358
train
ServiceDesk.create_organization
To create an organization Jira administrator global permission or agent permission is required depending on the settings :param name: str :return: Organization data
atlassian/service_desk.py
def create_organization(self, name): """ To create an organization Jira administrator global permission or agent permission is required depending on the settings :param name: str :return: Organization data """ log.warning('Creating organization...') url =...
def create_organization(self, name): """ To create an organization Jira administrator global permission or agent permission is required depending on the settings :param name: str :return: Organization data """ log.warning('Creating organization...') url =...
[ "To", "create", "an", "organization", "Jira", "administrator", "global", "permission", "or", "agent", "permission", "is", "required", "depending", "on", "the", "settings" ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/service_desk.py#L268-L280
[ "def", "create_organization", "(", "self", ",", "name", ")", ":", "log", ".", "warning", "(", "'Creating organization...'", ")", "url", "=", "'rest/servicedeskapi/organization'", "data", "=", "{", "'name'", ":", "name", "}", "return", "self", ".", "post", "(",...
540d269905c3e7547b666fe30c647b2d512cf358
train
ServiceDesk.add_organization
Adds an organization to a servicedesk for a given servicedesk ID and organization ID :param service_desk_id: str :param organization_id: int :return:
atlassian/service_desk.py
def add_organization(self, service_desk_id, organization_id): """ Adds an organization to a servicedesk for a given servicedesk ID and organization ID :param service_desk_id: str :param organization_id: int :return: """ log.warning('Adding organization...') ...
def add_organization(self, service_desk_id, organization_id): """ Adds an organization to a servicedesk for a given servicedesk ID and organization ID :param service_desk_id: str :param organization_id: int :return: """ log.warning('Adding organization...') ...
[ "Adds", "an", "organization", "to", "a", "servicedesk", "for", "a", "given", "servicedesk", "ID", "and", "organization", "ID" ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/service_desk.py#L282-L294
[ "def", "add_organization", "(", "self", ",", "service_desk_id", ",", "organization_id", ")", ":", "log", ".", "warning", "(", "'Adding organization...'", ")", "url", "=", "'rest/servicedeskapi/servicedesk/{}/organization'", ".", "format", "(", "service_desk_id", ")", ...
540d269905c3e7547b666fe30c647b2d512cf358
train
ServiceDesk.remove_organization
Removes an organization from a servicedesk for a given servicedesk ID and organization ID :param service_desk_id: str :param organization_id: int :return:
atlassian/service_desk.py
def remove_organization(self, service_desk_id, organization_id): """ Removes an organization from a servicedesk for a given servicedesk ID and organization ID :param service_desk_id: str :param organization_id: int :return: """ log.warning('Removing organization....
def remove_organization(self, service_desk_id, organization_id): """ Removes an organization from a servicedesk for a given servicedesk ID and organization ID :param service_desk_id: str :param organization_id: int :return: """ log.warning('Removing organization....
[ "Removes", "an", "organization", "from", "a", "servicedesk", "for", "a", "given", "servicedesk", "ID", "and", "organization", "ID" ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/service_desk.py#L296-L308
[ "def", "remove_organization", "(", "self", ",", "service_desk_id", ",", "organization_id", ")", ":", "log", ".", "warning", "(", "'Removing organization...'", ")", "url", "=", "'rest/servicedeskapi/servicedesk/{}/organization'", ".", "format", "(", "service_desk_id", ")...
540d269905c3e7547b666fe30c647b2d512cf358
train
ServiceDesk.delete_organization
Deletes an organization for a given organization ID :param organization_id: :return:
atlassian/service_desk.py
def delete_organization(self, organization_id): """ Deletes an organization for a given organization ID :param organization_id: :return: """ log.warning('Deleting organization...') url = 'rest/servicedeskapi/organization/{}'.format(organization_id) retur...
def delete_organization(self, organization_id): """ Deletes an organization for a given organization ID :param organization_id: :return: """ log.warning('Deleting organization...') url = 'rest/servicedeskapi/organization/{}'.format(organization_id) retur...
[ "Deletes", "an", "organization", "for", "a", "given", "organization", "ID" ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/service_desk.py#L310-L320
[ "def", "delete_organization", "(", "self", ",", "organization_id", ")", ":", "log", ".", "warning", "(", "'Deleting organization...'", ")", "url", "=", "'rest/servicedeskapi/organization/{}'", ".", "format", "(", "organization_id", ")", "return", "self", ".", "delet...
540d269905c3e7547b666fe30c647b2d512cf358
train
ServiceDesk.add_users_to_organization
Adds users to an organization users_list is a list of strings :param organization_id: str :param users_list: list :return:
atlassian/service_desk.py
def add_users_to_organization(self, organization_id, users_list): """ Adds users to an organization users_list is a list of strings :param organization_id: str :param users_list: list :return: """ log.warning('Adding users...') url = 'rest/service...
def add_users_to_organization(self, organization_id, users_list): """ Adds users to an organization users_list is a list of strings :param organization_id: str :param users_list: list :return: """ log.warning('Adding users...') url = 'rest/service...
[ "Adds", "users", "to", "an", "organization", "users_list", "is", "a", "list", "of", "strings" ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/service_desk.py#L322-L335
[ "def", "add_users_to_organization", "(", "self", ",", "organization_id", ",", "users_list", ")", ":", "log", ".", "warning", "(", "'Adding users...'", ")", "url", "=", "'rest/servicedeskapi/organization/{}/user'", ".", "format", "(", "organization_id", ")", "data", ...
540d269905c3e7547b666fe30c647b2d512cf358
train
ServiceDesk.remove_users_from_organization
Removes users from an organization users_list is a list of strings :param organization_id: str :param users_list: list :return:
atlassian/service_desk.py
def remove_users_from_organization(self, organization_id, users_list): """ Removes users from an organization users_list is a list of strings :param organization_id: str :param users_list: list :return: """ log.warning('Removing users...') url = '...
def remove_users_from_organization(self, organization_id, users_list): """ Removes users from an organization users_list is a list of strings :param organization_id: str :param users_list: list :return: """ log.warning('Removing users...') url = '...
[ "Removes", "users", "from", "an", "organization", "users_list", "is", "a", "list", "of", "strings" ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/service_desk.py#L337-L350
[ "def", "remove_users_from_organization", "(", "self", ",", "organization_id", ",", "users_list", ")", ":", "log", ".", "warning", "(", "'Removing users...'", ")", "url", "=", "'rest/servicedeskapi/organization/{}/user'", ".", "format", "(", "organization_id", ")", "da...
540d269905c3e7547b666fe30c647b2d512cf358
train
ServiceDesk.create_attachment
Add attachment as a comment. Setting attachment visibility is dependent on the user's permission. For example, Agents can create either public or internal attachments, while Unlicensed users can only create internal attachments, and Customers can only create public attachments. An addi...
atlassian/service_desk.py
def create_attachment(self, service_desk_id, issue_id_or_key, filename, public=True, comment=None): """ Add attachment as a comment. Setting attachment visibility is dependent on the user's permission. For example, Agents can create either public or internal attachments, while Unlicense...
def create_attachment(self, service_desk_id, issue_id_or_key, filename, public=True, comment=None): """ Add attachment as a comment. Setting attachment visibility is dependent on the user's permission. For example, Agents can create either public or internal attachments, while Unlicense...
[ "Add", "attachment", "as", "a", "comment", "." ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/service_desk.py#L353-L376
[ "def", "create_attachment", "(", "self", ",", "service_desk_id", ",", "issue_id_or_key", ",", "filename", ",", "public", "=", "True", ",", "comment", "=", "None", ")", ":", "log", ".", "warning", "(", "'Creating attachment...'", ")", "# Create temporary attachment...
540d269905c3e7547b666fe30c647b2d512cf358
train
ServiceDesk.attach_temporary_file
Create temporary attachment, which can later be converted into permanent attachment :param service_desk_id: str :param filename: str :return: Temporary Attachment ID
atlassian/service_desk.py
def attach_temporary_file(self, service_desk_id, filename): """ Create temporary attachment, which can later be converted into permanent attachment :param service_desk_id: str :param filename: str :return: Temporary Attachment ID """ headers = {'X-Atlassian-Token...
def attach_temporary_file(self, service_desk_id, filename): """ Create temporary attachment, which can later be converted into permanent attachment :param service_desk_id: str :param filename: str :return: Temporary Attachment ID """ headers = {'X-Atlassian-Token...
[ "Create", "temporary", "attachment", "which", "can", "later", "be", "converted", "into", "permanent", "attachment" ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/service_desk.py#L378-L393
[ "def", "attach_temporary_file", "(", "self", ",", "service_desk_id", ",", "filename", ")", ":", "headers", "=", "{", "'X-Atlassian-Token'", ":", "'no-check'", ",", "'X-ExperimentalApi'", ":", "'opt-in'", "}", "url", "=", "'rest/servicedeskapi/servicedesk/{}/attachTempor...
540d269905c3e7547b666fe30c647b2d512cf358
train
ServiceDesk.add_attachment
Adds temporary attachment that were created using attach_temporary_file function to a customer request :param issue_id_or_key: str :param temp_attachment_id: str, ID from result attach_temporary_file function :param public: bool (default is True) :param comment: str (default is None) ...
atlassian/service_desk.py
def add_attachment(self, issue_id_or_key, temp_attachment_id, public=True, comment=None): """ Adds temporary attachment that were created using attach_temporary_file function to a customer request :param issue_id_or_key: str :param temp_attachment_id: str, ID from result attach_temporar...
def add_attachment(self, issue_id_or_key, temp_attachment_id, public=True, comment=None): """ Adds temporary attachment that were created using attach_temporary_file function to a customer request :param issue_id_or_key: str :param temp_attachment_id: str, ID from result attach_temporar...
[ "Adds", "temporary", "attachment", "that", "were", "created", "using", "attach_temporary_file", "function", "to", "a", "customer", "request" ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/service_desk.py#L395-L413
[ "def", "add_attachment", "(", "self", ",", "issue_id_or_key", ",", "temp_attachment_id", ",", "public", "=", "True", ",", "comment", "=", "None", ")", ":", "log", ".", "warning", "(", "'Adding attachment'", ")", "data", "=", "{", "'temporaryAttachmentIds'", ":...
540d269905c3e7547b666fe30c647b2d512cf358
train
ServiceDesk.get_sla_by_id
Get the SLA information for a customer request for a given request ID or key and SLA metric ID IMPORTANT: The calling user must be an agent :param issue_id_or_key: str :param sla_id: str :return: SLA information
atlassian/service_desk.py
def get_sla_by_id(self, issue_id_or_key, sla_id): """ Get the SLA information for a customer request for a given request ID or key and SLA metric ID IMPORTANT: The calling user must be an agent :param issue_id_or_key: str :param sla_id: str :return: SLA information ...
def get_sla_by_id(self, issue_id_or_key, sla_id): """ Get the SLA information for a customer request for a given request ID or key and SLA metric ID IMPORTANT: The calling user must be an agent :param issue_id_or_key: str :param sla_id: str :return: SLA information ...
[ "Get", "the", "SLA", "information", "for", "a", "customer", "request", "for", "a", "given", "request", "ID", "or", "key", "and", "SLA", "metric", "ID", "IMPORTANT", ":", "The", "calling", "user", "must", "be", "an", "agent" ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/service_desk.py#L436-L447
[ "def", "get_sla_by_id", "(", "self", ",", "issue_id_or_key", ",", "sla_id", ")", ":", "url", "=", "'rest/servicedeskapi/request/{0}/sla/{1}'", ".", "format", "(", "issue_id_or_key", ",", "sla_id", ")", "return", "self", ".", "get", "(", "url", ")" ]
540d269905c3e7547b666fe30c647b2d512cf358
train
ServiceDesk.get_approvals
Get all approvals on a request, for a given request ID/Key :param issue_id_or_key: str :param start: OPTIONAL: int :param limit: OPTIONAL: int :return:
atlassian/service_desk.py
def get_approvals(self, issue_id_or_key, start=0, limit=50): """ Get all approvals on a request, for a given request ID/Key :param issue_id_or_key: str :param start: OPTIONAL: int :param limit: OPTIONAL: int :return: """ url = 'rest/servicedeskapi/request...
def get_approvals(self, issue_id_or_key, start=0, limit=50): """ Get all approvals on a request, for a given request ID/Key :param issue_id_or_key: str :param start: OPTIONAL: int :param limit: OPTIONAL: int :return: """ url = 'rest/servicedeskapi/request...
[ "Get", "all", "approvals", "on", "a", "request", "for", "a", "given", "request", "ID", "/", "Key" ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/service_desk.py#L450-L466
[ "def", "get_approvals", "(", "self", ",", "issue_id_or_key", ",", "start", "=", "0", ",", "limit", "=", "50", ")", ":", "url", "=", "'rest/servicedeskapi/request/{}/approval'", ".", "format", "(", "issue_id_or_key", ")", "params", "=", "{", "}", "if", "start...
540d269905c3e7547b666fe30c647b2d512cf358
train
ServiceDesk.get_approval_by_id
Get an approval for a given approval ID :param issue_id_or_key: str :param approval_id: str :return:
atlassian/service_desk.py
def get_approval_by_id(self, issue_id_or_key, approval_id): """ Get an approval for a given approval ID :param issue_id_or_key: str :param approval_id: str :return: """ url = 'rest/servicedeskapi/request/{0}/approval/{1}'.format(issue_id_or_key, approval_id) ...
def get_approval_by_id(self, issue_id_or_key, approval_id): """ Get an approval for a given approval ID :param issue_id_or_key: str :param approval_id: str :return: """ url = 'rest/servicedeskapi/request/{0}/approval/{1}'.format(issue_id_or_key, approval_id) ...
[ "Get", "an", "approval", "for", "a", "given", "approval", "ID" ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/service_desk.py#L468-L478
[ "def", "get_approval_by_id", "(", "self", ",", "issue_id_or_key", ",", "approval_id", ")", ":", "url", "=", "'rest/servicedeskapi/request/{0}/approval/{1}'", ".", "format", "(", "issue_id_or_key", ",", "approval_id", ")", "return", "self", ".", "get", "(", "url", ...
540d269905c3e7547b666fe30c647b2d512cf358
train
ServiceDesk.answer_approval
Answer a pending approval :param issue_id_or_key: str :param approval_id: str :param decision: str :return:
atlassian/service_desk.py
def answer_approval(self, issue_id_or_key, approval_id, decision): """ Answer a pending approval :param issue_id_or_key: str :param approval_id: str :param decision: str :return: """ url = 'rest/servicedeskapi/request/{0}/approval/{1}'.format(issue_id_or_...
def answer_approval(self, issue_id_or_key, approval_id, decision): """ Answer a pending approval :param issue_id_or_key: str :param approval_id: str :param decision: str :return: """ url = 'rest/servicedeskapi/request/{0}/approval/{1}'.format(issue_id_or_...
[ "Answer", "a", "pending", "approval" ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/service_desk.py#L480-L492
[ "def", "answer_approval", "(", "self", ",", "issue_id_or_key", ",", "approval_id", ",", "decision", ")", ":", "url", "=", "'rest/servicedeskapi/request/{0}/approval/{1}'", ".", "format", "(", "issue_id_or_key", ",", "approval_id", ")", "data", "=", "{", "'decision'"...
540d269905c3e7547b666fe30c647b2d512cf358
train
ServiceDesk.get_queue_settings
Get queue settings on project :param project_key: str :return:
atlassian/service_desk.py
def get_queue_settings(self, project_key): """ Get queue settings on project :param project_key: str :return: """ url = 'rest/servicedeskapi/queues/{}'.format(project_key) return self.get(url, headers=self.experimental_headers)
def get_queue_settings(self, project_key): """ Get queue settings on project :param project_key: str :return: """ url = 'rest/servicedeskapi/queues/{}'.format(project_key) return self.get(url, headers=self.experimental_headers)
[ "Get", "queue", "settings", "on", "project" ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/service_desk.py#L494-L503
[ "def", "get_queue_settings", "(", "self", ",", "project_key", ")", ":", "url", "=", "'rest/servicedeskapi/queues/{}'", ".", "format", "(", "project_key", ")", "return", "self", ".", "get", "(", "url", ",", "headers", "=", "self", ".", "experimental_headers", "...
540d269905c3e7547b666fe30c647b2d512cf358
train
ServiceDesk.add_customers
Adds one or more existing customers to the given service desk. If you need to create a customer, see Create customer method. Administer project permission is required, or agents if public signups and invites are enabled for the Service Desk project. :param service_desk_id: str ...
atlassian/service_desk.py
def add_customers(self, service_desk_id, list_of_usernames): """ Adds one or more existing customers to the given service desk. If you need to create a customer, see Create customer method. Administer project permission is required, or agents if public signups and invites are en...
def add_customers(self, service_desk_id, list_of_usernames): """ Adds one or more existing customers to the given service desk. If you need to create a customer, see Create customer method. Administer project permission is required, or agents if public signups and invites are en...
[ "Adds", "one", "or", "more", "existing", "customers", "to", "the", "given", "service", "desk", ".", "If", "you", "need", "to", "create", "a", "customer", "see", "Create", "customer", "method", "." ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/service_desk.py#L505-L520
[ "def", "add_customers", "(", "self", ",", "service_desk_id", ",", "list_of_usernames", ")", ":", "url", "=", "'rest/servicedeskapi/servicedesk/{}/customer'", ".", "format", "(", "service_desk_id", ")", "data", "=", "{", "'usernames'", ":", "list_of_usernames", "}", ...
540d269905c3e7547b666fe30c647b2d512cf358
train
ServiceDesk.get_queues
Returns a page of queues defined inside a service desk, for a given service desk ID. The returned queues will include an issue count for each queue (represented in issueCount field) if the query param includeCount is set to true (defaults to false). Permissions: The calling user must be an agen...
atlassian/service_desk.py
def get_queues(self, service_desk_id, include_count=False, start=0, limit=50): """ Returns a page of queues defined inside a service desk, for a given service desk ID. The returned queues will include an issue count for each queue (represented in issueCount field) if the query param incl...
def get_queues(self, service_desk_id, include_count=False, start=0, limit=50): """ Returns a page of queues defined inside a service desk, for a given service desk ID. The returned queues will include an issue count for each queue (represented in issueCount field) if the query param incl...
[ "Returns", "a", "page", "of", "queues", "defined", "inside", "a", "service", "desk", "for", "a", "given", "service", "desk", "ID", ".", "The", "returned", "queues", "will", "include", "an", "issue", "count", "for", "each", "queue", "(", "represented", "in"...
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/service_desk.py#L522-L546
[ "def", "get_queues", "(", "self", ",", "service_desk_id", ",", "include_count", "=", "False", ",", "start", "=", "0", ",", "limit", "=", "50", ")", ":", "url", "=", "'rest/servicedeskapi/servicedesk/{}/queue'", ".", "format", "(", "service_desk_id", ")", "para...
540d269905c3e7547b666fe30c647b2d512cf358
train
ServiceDesk.get_issues_in_queue
Returns a page of issues inside a queue for a given queue ID. Only fields that the queue is configured to show are returned. For example, if a queue is configured to show only Description and Due Date, then only those two fields are returned for each issue in the queue. Permissions: The...
atlassian/service_desk.py
def get_issues_in_queue(self, service_desk_id, queue_id, start=0, limit=50): """ Returns a page of issues inside a queue for a given queue ID. Only fields that the queue is configured to show are returned. For example, if a queue is configured to show only Description and Due Date, ...
def get_issues_in_queue(self, service_desk_id, queue_id, start=0, limit=50): """ Returns a page of issues inside a queue for a given queue ID. Only fields that the queue is configured to show are returned. For example, if a queue is configured to show only Description and Due Date, ...
[ "Returns", "a", "page", "of", "issues", "inside", "a", "queue", "for", "a", "given", "queue", "ID", ".", "Only", "fields", "that", "the", "queue", "is", "configured", "to", "show", "are", "returned", ".", "For", "example", "if", "a", "queue", "is", "co...
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/service_desk.py#L548-L572
[ "def", "get_issues_in_queue", "(", "self", ",", "service_desk_id", ",", "queue_id", ",", "start", "=", "0", ",", "limit", "=", "50", ")", ":", "url", "=", "'rest/servicedeskapi/servicedesk/{0}/queue/{1}/issue'", ".", "format", "(", "service_desk_id", ",", "queue_i...
540d269905c3e7547b666fe30c647b2d512cf358
train
Bamboo._get_generator
Generic method to return a generator with the results returned from Bamboo. It is intended to work for responses in the form: { 'results': { 'size': 5, 'start-index': 0, 'max-result': 5, 'result': [] }, ...
atlassian/bamboo.py
def _get_generator(self, path, elements_key='results', element_key='result', data=None, flags=None, params=None, headers=None): """ Generic method to return a generator with the results returned from Bamboo. It is intended to work for responses in the form: { ...
def _get_generator(self, path, elements_key='results', element_key='result', data=None, flags=None, params=None, headers=None): """ Generic method to return a generator with the results returned from Bamboo. It is intended to work for responses in the form: { ...
[ "Generic", "method", "to", "return", "a", "generator", "with", "the", "results", "returned", "from", "Bamboo", ".", "It", "is", "intended", "to", "work", "for", "responses", "in", "the", "form", ":", "{", "results", ":", "{", "size", ":", "5", "start", ...
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/bamboo.py#L9-L42
[ "def", "_get_generator", "(", "self", ",", "path", ",", "elements_key", "=", "'results'", ",", "element_key", "=", "'result'", ",", "data", "=", "None", ",", "flags", "=", "None", ",", "params", "=", "None", ",", "headers", "=", "None", ")", ":", "size...
540d269905c3e7547b666fe30c647b2d512cf358
train
Bamboo.project_plans
Returns a generator with the plans in a given project :param project_key: Project key :return: Generator with plans
atlassian/bamboo.py
def project_plans(self, project_key): """ Returns a generator with the plans in a given project :param project_key: Project key :return: Generator with plans """ resource = 'project/{}'.format(project_key, max_results=25) return self.base_list_call(resource, expan...
def project_plans(self, project_key): """ Returns a generator with the plans in a given project :param project_key: Project key :return: Generator with plans """ resource = 'project/{}'.format(project_key, max_results=25) return self.base_list_call(resource, expan...
[ "Returns", "a", "generator", "with", "the", "plans", "in", "a", "given", "project", ":", "param", "project_key", ":", "Project", "key", ":", "return", ":", "Generator", "with", "plans" ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/bamboo.py#L69-L77
[ "def", "project_plans", "(", "self", ",", "project_key", ")", ":", "resource", "=", "'project/{}'", ".", "format", "(", "project_key", ",", "max_results", "=", "25", ")", "return", "self", ".", "base_list_call", "(", "resource", ",", "expand", "=", "'plans'"...
540d269905c3e7547b666fe30c647b2d512cf358
train
Bamboo.results
Get results as generic method :param project_key: :param plan_key: :param job_key: :param build_number: :param expand: :param favourite: :param clover_enabled: :param issue_key: :param start_index: :param max_results: :return:
atlassian/bamboo.py
def results(self, project_key=None, plan_key=None, job_key=None, build_number=None, expand=None, favourite=False, clover_enabled=False, issue_key=None, start_index=0, max_results=25): """ Get results as generic method :param project_key: :param plan_key: :param jo...
def results(self, project_key=None, plan_key=None, job_key=None, build_number=None, expand=None, favourite=False, clover_enabled=False, issue_key=None, start_index=0, max_results=25): """ Get results as generic method :param project_key: :param plan_key: :param jo...
[ "Get", "results", "as", "generic", "method", ":", "param", "project_key", ":", ":", "param", "plan_key", ":", ":", "param", "job_key", ":", ":", "param", "build_number", ":", ":", "param", "expand", ":", ":", "param", "favourite", ":", ":", "param", "clo...
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/bamboo.py#L83-L114
[ "def", "results", "(", "self", ",", "project_key", "=", "None", ",", "plan_key", "=", "None", ",", "job_key", "=", "None", ",", "build_number", "=", "None", ",", "expand", "=", "None", ",", "favourite", "=", "False", ",", "clover_enabled", "=", "False", ...
540d269905c3e7547b666fe30c647b2d512cf358
train
Bamboo.plan_results
Get Plan results :param project_key: :param plan_key: :param expand: :param favourite: :param clover_enabled: :param label: :param issue_key: :param start_index: :param max_results: :return:
atlassian/bamboo.py
def plan_results(self, project_key, plan_key, expand=None, favourite=False, clover_enabled=False, label=None, issue_key=None, start_index=0, max_results=25): """ Get Plan results :param project_key: :param plan_key: :param expand: :param favourite: ...
def plan_results(self, project_key, plan_key, expand=None, favourite=False, clover_enabled=False, label=None, issue_key=None, start_index=0, max_results=25): """ Get Plan results :param project_key: :param plan_key: :param expand: :param favourite: ...
[ "Get", "Plan", "results", ":", "param", "project_key", ":", ":", "param", "plan_key", ":", ":", "param", "expand", ":", ":", "param", "favourite", ":", ":", "param", "clover_enabled", ":", ":", "param", "label", ":", ":", "param", "issue_key", ":", ":", ...
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/bamboo.py#L149-L165
[ "def", "plan_results", "(", "self", ",", "project_key", ",", "plan_key", ",", "expand", "=", "None", ",", "favourite", "=", "False", ",", "clover_enabled", "=", "False", ",", "label", "=", "None", ",", "issue_key", "=", "None", ",", "start_index", "=", "...
540d269905c3e7547b666fe30c647b2d512cf358
train
Bamboo.build_result
Returns details of a specific build result :param expand: expands build result details on request. Possible values are: artifacts, comments, labels, Jira Issues, stages. stages expand is available only for top level plans. It allows to drill down to job results using stages.stage.results.result....
atlassian/bamboo.py
def build_result(self, build_key, expand=None): """ Returns details of a specific build result :param expand: expands build result details on request. Possible values are: artifacts, comments, labels, Jira Issues, stages. stages expand is available only for top level plans. It allows to ...
def build_result(self, build_key, expand=None): """ Returns details of a specific build result :param expand: expands build result details on request. Possible values are: artifacts, comments, labels, Jira Issues, stages. stages expand is available only for top level plans. It allows to ...
[ "Returns", "details", "of", "a", "specific", "build", "result", ":", "param", "expand", ":", "expands", "build", "result", "details", "on", "request", ".", "Possible", "values", "are", ":", "artifacts", "comments", "labels", "Jira", "Issues", "stages", ".", ...
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/bamboo.py#L167-L182
[ "def", "build_result", "(", "self", ",", "build_key", ",", "expand", "=", "None", ")", ":", "try", ":", "int", "(", "build_key", ".", "split", "(", "'-'", ")", "[", "-", "1", "]", ")", "resource", "=", "\"result/{}\"", ".", "format", "(", "build_key"...
540d269905c3e7547b666fe30c647b2d512cf358
train
Bamboo.deployment_dashboard
Returns the current status of each deployment environment If no project id is provided, returns all projects.
atlassian/bamboo.py
def deployment_dashboard(self, project_id=None): """ Returns the current status of each deployment environment If no project id is provided, returns all projects. """ resource = 'deploy/dashboard/{}'.format(project_id) if project_id else 'deploy/dashboard' return self.get...
def deployment_dashboard(self, project_id=None): """ Returns the current status of each deployment environment If no project id is provided, returns all projects. """ resource = 'deploy/dashboard/{}'.format(project_id) if project_id else 'deploy/dashboard' return self.get...
[ "Returns", "the", "current", "status", "of", "each", "deployment", "environment", "If", "no", "project", "id", "is", "provided", "returns", "all", "projects", "." ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/bamboo.py#L273-L279
[ "def", "deployment_dashboard", "(", "self", ",", "project_id", "=", "None", ")", ":", "resource", "=", "'deploy/dashboard/{}'", ".", "format", "(", "project_id", ")", "if", "project_id", "else", "'deploy/dashboard'", "return", "self", ".", "get", "(", "self", ...
540d269905c3e7547b666fe30c647b2d512cf358
train
Bamboo.plan_branches
api/1.0/plan/{projectKey}-{buildKey}/branch
atlassian/bamboo.py
def plan_branches(self, plan_key, expand=None, favourite=False, clover_enabled=False, max_results=25): """api/1.0/plan/{projectKey}-{buildKey}/branch""" resource = 'plan/{}/branch'.format(plan_key) return self.base_list_call(resource, expand, favourite, clover_enabled, max_results, ...
def plan_branches(self, plan_key, expand=None, favourite=False, clover_enabled=False, max_results=25): """api/1.0/plan/{projectKey}-{buildKey}/branch""" resource = 'plan/{}/branch'.format(plan_key) return self.base_list_call(resource, expand, favourite, clover_enabled, max_results, ...
[ "api", "/", "1", ".", "0", "/", "plan", "/", "{", "projectKey", "}", "-", "{", "buildKey", "}", "/", "branch" ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/bamboo.py#L296-L300
[ "def", "plan_branches", "(", "self", ",", "plan_key", ",", "expand", "=", "None", ",", "favourite", "=", "False", ",", "clover_enabled", "=", "False", ",", "max_results", "=", "25", ")", ":", "resource", "=", "'plan/{}/branch'", ".", "format", "(", "plan_k...
540d269905c3e7547b666fe30c647b2d512cf358
train
is_email
>>> is_email('username@example.com') True >>> is_email('example.com') False >>> is_email('firstname.lastname@domain.co.uk') True
atlassian/utils.py
def is_email(string): """ >>> is_email('username@example.com') True >>> is_email('example.com') False >>> is_email('firstname.lastname@domain.co.uk') True """ email_regex = r'^[A-Za-z0-9\.\+_-]+@[A-Za-z0-9\._-]+\.[a-zA-Z]*$' if isinstance(string, str) and not re.match(email_rege...
def is_email(string): """ >>> is_email('username@example.com') True >>> is_email('example.com') False >>> is_email('firstname.lastname@domain.co.uk') True """ email_regex = r'^[A-Za-z0-9\.\+_-]+@[A-Za-z0-9\._-]+\.[a-zA-Z]*$' if isinstance(string, str) and not re.match(email_rege...
[ ">>>", "is_email", "(", "username" ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/utils.py#L8-L22
[ "def", "is_email", "(", "string", ")", ":", "email_regex", "=", "r'^[A-Za-z0-9\\.\\+_-]+@[A-Za-z0-9\\._-]+\\.[a-zA-Z]*$'", "if", "isinstance", "(", "string", ",", "str", ")", "and", "not", "re", ".", "match", "(", "email_regex", ",", "string", ")", ":", "return"...
540d269905c3e7547b666fe30c647b2d512cf358
train
html_email
>>> html_email('username@example.com') '<a href="mailto:username@example.com">username@example.com</a>'
atlassian/utils.py
def html_email(email, title=None): """ >>> html_email('username@example.com') '<a href="mailto:username@example.com">username@example.com</a>' """ if not title: title = email return '<a href="mailto:{email}">{title}</a>'.format(email=email, title=title)
def html_email(email, title=None): """ >>> html_email('username@example.com') '<a href="mailto:username@example.com">username@example.com</a>' """ if not title: title = email return '<a href="mailto:{email}">{title}</a>'.format(email=email, title=title)
[ ">>>", "html_email", "(", "username" ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/utils.py#L25-L34
[ "def", "html_email", "(", "email", ",", "title", "=", "None", ")", ":", "if", "not", "title", ":", "title", "=", "email", "return", "'<a href=\"mailto:{email}\">{title}</a>'", ".", "format", "(", "email", "=", "email", ",", "title", "=", "title", ")" ]
540d269905c3e7547b666fe30c647b2d512cf358
train
html_list
>>> html_list(['example.com', 'admin1@example.com', 'admin2@example.com']) '<ul> <li>example.com</li> <li><a href="mailto:admin1@example.com">admin1@example.com</a></li> <li><a href="mailto:admin2@example.com">admin2@example.com</a></li> </ul>'
atlassian/utils.py
def html_list(data): """ >>> html_list(['example.com', 'admin1@example.com', 'admin2@example.com']) '<ul> <li>example.com</li> <li><a href="mailto:admin1@example.com">admin1@example.com</a></li> <li><a href="mailto:admin2@example.com">admin2@example.com</a></li> </ul>' """ ...
def html_list(data): """ >>> html_list(['example.com', 'admin1@example.com', 'admin2@example.com']) '<ul> <li>example.com</li> <li><a href="mailto:admin1@example.com">admin1@example.com</a></li> <li><a href="mailto:admin2@example.com">admin2@example.com</a></li> </ul>' """ ...
[ ">>>", "html_list", "(", "[", "example", ".", "com", "admin1" ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/utils.py#L37-L61
[ "def", "html_list", "(", "data", ")", ":", "html", "=", "'<ul>'", "for", "item", "in", "data", ":", "if", "isinstance", "(", "item", ",", "dict", ")", ":", "if", "item", ".", "get", "(", "'email'", ")", ":", "item", "=", "html_email", "(", "item", ...
540d269905c3e7547b666fe30c647b2d512cf358
train
html_table_header_row
>>> html_table_header_row(['administrators', 'key', 'leader', 'project']) '\\n\\t<tr><th>Administrators</th><th>Key</th><th>Leader</th><th>Project</th></tr>' >>> html_table_header_row(['key', 'project', 'leader', 'administrators']) '\\n\\t<tr><th>Key</th><th>Project</th><th>Leader</th><th>Administrators</th...
atlassian/utils.py
def html_table_header_row(data): """ >>> html_table_header_row(['administrators', 'key', 'leader', 'project']) '\\n\\t<tr><th>Administrators</th><th>Key</th><th>Leader</th><th>Project</th></tr>' >>> html_table_header_row(['key', 'project', 'leader', 'administrators']) '\\n\\t<tr><th>Key</th><th>Proj...
def html_table_header_row(data): """ >>> html_table_header_row(['administrators', 'key', 'leader', 'project']) '\\n\\t<tr><th>Administrators</th><th>Key</th><th>Leader</th><th>Project</th></tr>' >>> html_table_header_row(['key', 'project', 'leader', 'administrators']) '\\n\\t<tr><th>Key</th><th>Proj...
[ ">>>", "html_table_header_row", "(", "[", "administrators", "key", "leader", "project", "]", ")", "\\\\", "n", "\\\\", "t<tr", ">", "<th", ">", "Administrators<", "/", "th", ">", "<th", ">", "Key<", "/", "th", ">", "<th", ">", "Leader<", "/", "th", ">"...
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/utils.py#L64-L77
[ "def", "html_table_header_row", "(", "data", ")", ":", "html", "=", "'\\n\\t<tr>'", "for", "th", "in", "data", ":", "title", "=", "th", ".", "replace", "(", "'_'", ",", "' '", ")", ".", "title", "(", ")", "html", "+=", "'<th>{}</th>'", ".", "format", ...
540d269905c3e7547b666fe30c647b2d512cf358
train
html_row_with_ordered_headers
>>> headers = ['administrators', 'key', 'leader', 'project'] >>> data = {'key': 'DEMO', 'project': 'Demonstration', 'leader': 'leader@example.com', 'administrators': ['admin1@example.com', 'admin2@example.com']} >>> html_row_with_ordered_headers(data, headers) '\\n\\t<tr><td><ul><li><a href="mailto:admin1@e...
atlassian/utils.py
def html_row_with_ordered_headers(data, headers): """ >>> headers = ['administrators', 'key', 'leader', 'project'] >>> data = {'key': 'DEMO', 'project': 'Demonstration', 'leader': 'leader@example.com', 'administrators': ['admin1@example.com', 'admin2@example.com']} >>> html_row_with_ordered_headers(data...
def html_row_with_ordered_headers(data, headers): """ >>> headers = ['administrators', 'key', 'leader', 'project'] >>> data = {'key': 'DEMO', 'project': 'Demonstration', 'leader': 'leader@example.com', 'administrators': ['admin1@example.com', 'admin2@example.com']} >>> html_row_with_ordered_headers(data...
[ ">>>", "headers", "=", "[", "administrators", "key", "leader", "project", "]", ">>>", "data", "=", "{", "key", ":", "DEMO", "project", ":", "Demonstration", "leader", ":", "leader" ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/utils.py#L80-L103
[ "def", "html_row_with_ordered_headers", "(", "data", ",", "headers", ")", ":", "html", "=", "'\\n\\t<tr>'", "for", "header", "in", "headers", ":", "element", "=", "data", "[", "header", "]", "if", "isinstance", "(", "element", ",", "list", ")", ":", "eleme...
540d269905c3e7547b666fe30c647b2d512cf358
train
html_table_from_dict
>>> ordering = ['administrators', 'key', 'leader', 'project'] >>> data = [ \ {'key': 'DEMO', 'project': 'Demo project', 'leader': 'lead@example.com', \ 'administrators': ['admin@example.com', 'root@example.com']},] >>> html_table_from_dict(data, ordering) '<table> <tbody>\\n ...
atlassian/utils.py
def html_table_from_dict(data, ordering): """ >>> ordering = ['administrators', 'key', 'leader', 'project'] >>> data = [ \ {'key': 'DEMO', 'project': 'Demo project', 'leader': 'lead@example.com', \ 'administrators': ['admin@example.com', 'root@example.com']},] >>> html_table_from_dic...
def html_table_from_dict(data, ordering): """ >>> ordering = ['administrators', 'key', 'leader', 'project'] >>> data = [ \ {'key': 'DEMO', 'project': 'Demo project', 'leader': 'lead@example.com', \ 'administrators': ['admin@example.com', 'root@example.com']},] >>> html_table_from_dic...
[ ">>>", "ordering", "=", "[", "administrators", "key", "leader", "project", "]", ">>>", "data", "=", "[", "\\", "{", "key", ":", "DEMO", "project", ":", "Demo", "project", "leader", ":", "lead" ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/utils.py#L106-L164
[ "def", "html_table_from_dict", "(", "data", ",", "ordering", ")", ":", "html", "=", "'<table><tbody>'", "html", "+=", "html_table_header_row", "(", "ordering", ")", "for", "row", "in", "data", ":", "html", "+=", "html_row_with_ordered_headers", "(", "row", ",", ...
540d269905c3e7547b666fe30c647b2d512cf358
train
MarketPlace.get_plugins_info
Provide plugins info :param limit: :param offset: :return:
atlassian/marketplace.py
def get_plugins_info(self, limit=10, offset=10): """ Provide plugins info :param limit: :param offset: :return: """ params = {} if offset: params['offset'] = offset if limit: params['limit'] = limit url = 'rest/1.0/p...
def get_plugins_info(self, limit=10, offset=10): """ Provide plugins info :param limit: :param offset: :return: """ params = {} if offset: params['offset'] = offset if limit: params['limit'] = limit url = 'rest/1.0/p...
[ "Provide", "plugins", "info", ":", "param", "limit", ":", ":", "param", "offset", ":", ":", "return", ":" ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/marketplace.py#L12-L25
[ "def", "get_plugins_info", "(", "self", ",", "limit", "=", "10", ",", "offset", "=", "10", ")", ":", "params", "=", "{", "}", "if", "offset", ":", "params", "[", "'offset'", "]", "=", "offset", "if", "limit", ":", "params", "[", "'limit'", "]", "="...
540d269905c3e7547b666fe30c647b2d512cf358
train
MarketPlace.get_vendors_info
Provide vendors info :param limit: :param offset: :return:
atlassian/marketplace.py
def get_vendors_info(self, limit=10, offset=10): """ Provide vendors info :param limit: :param offset: :return: """ params = {} if offset: params['offset'] = offset if limit: params['limit'] = limit url = 'rest/1.0/v...
def get_vendors_info(self, limit=10, offset=10): """ Provide vendors info :param limit: :param offset: :return: """ params = {} if offset: params['offset'] = offset if limit: params['limit'] = limit url = 'rest/1.0/v...
[ "Provide", "vendors", "info", ":", "param", "limit", ":", ":", "param", "offset", ":", ":", "return", ":" ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/marketplace.py#L27-L40
[ "def", "get_vendors_info", "(", "self", ",", "limit", "=", "10", ",", "offset", "=", "10", ")", ":", "params", "=", "{", "}", "if", "offset", ":", "params", "[", "'offset'", "]", "=", "offset", "if", "limit", ":", "params", "[", "'limit'", "]", "="...
540d269905c3e7547b666fe30c647b2d512cf358
train
MarketPlace.get_application_info
Information about applications :param limit: :param offset: :return:
atlassian/marketplace.py
def get_application_info(self, limit=10, offset=10): """ Information about applications :param limit: :param offset: :return: """ params = {} if offset: params['offset'] = offset if limit: params['limit'] = limit url...
def get_application_info(self, limit=10, offset=10): """ Information about applications :param limit: :param offset: :return: """ params = {} if offset: params['offset'] = offset if limit: params['limit'] = limit url...
[ "Information", "about", "applications", ":", "param", "limit", ":", ":", "param", "offset", ":", ":", "return", ":" ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/marketplace.py#L42-L55
[ "def", "get_application_info", "(", "self", ",", "limit", "=", "10", ",", "offset", "=", "10", ")", ":", "params", "=", "{", "}", "if", "offset", ":", "params", "[", "'offset'", "]", "=", "offset", "if", "limit", ":", "params", "[", "'limit'", "]", ...
540d269905c3e7547b666fe30c647b2d512cf358
train
Bitbucket.project_list
Provide the project list :param limit: OPTIONAL 25 is default :return:
atlassian/bitbucket.py
def project_list(self, limit=None): """ Provide the project list :param limit: OPTIONAL 25 is default :return: """ params = {} if limit: params['limit'] = limit return (self.get('rest/api/1.0/projects', params=params) or {}).get('values')
def project_list(self, limit=None): """ Provide the project list :param limit: OPTIONAL 25 is default :return: """ params = {} if limit: params['limit'] = limit return (self.get('rest/api/1.0/projects', params=params) or {}).get('values')
[ "Provide", "the", "project", "list", ":", "param", "limit", ":", "OPTIONAL", "25", "is", "default", ":", "return", ":" ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/bitbucket.py#L9-L18
[ "def", "project_list", "(", "self", ",", "limit", "=", "None", ")", ":", "params", "=", "{", "}", "if", "limit", ":", "params", "[", "'limit'", "]", "=", "limit", "return", "(", "self", ".", "get", "(", "'rest/api/1.0/projects'", ",", "params", "=", ...
540d269905c3e7547b666fe30c647b2d512cf358
train
Bitbucket.project
Provide project info :param key: :return:
atlassian/bitbucket.py
def project(self, key): """ Provide project info :param key: :return: """ url = 'rest/api/1.0/projects/{0}'.format(key) return (self.get(url) or {}).get('values')
def project(self, key): """ Provide project info :param key: :return: """ url = 'rest/api/1.0/projects/{0}'.format(key) return (self.get(url) or {}).get('values')
[ "Provide", "project", "info", ":", "param", "key", ":", ":", "return", ":" ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/bitbucket.py#L20-L27
[ "def", "project", "(", "self", ",", "key", ")", ":", "url", "=", "'rest/api/1.0/projects/{0}'", ".", "format", "(", "key", ")", "return", "(", "self", ".", "get", "(", "url", ")", "or", "{", "}", ")", ".", "get", "(", "'values'", ")" ]
540d269905c3e7547b666fe30c647b2d512cf358
train
Bitbucket.create_project
Create project :param key: :param name: :param description: :return:
atlassian/bitbucket.py
def create_project(self, key, name, description=""): """ Create project :param key: :param name: :param description: :return: """ url = 'rest/api/1.0/projects' data = {"key": key, "name": name, "description": descrip...
def create_project(self, key, name, description=""): """ Create project :param key: :param name: :param description: :return: """ url = 'rest/api/1.0/projects' data = {"key": key, "name": name, "description": descrip...
[ "Create", "project", ":", "param", "key", ":", ":", "param", "name", ":", ":", "param", "description", ":", ":", "return", ":" ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/bitbucket.py#L29-L42
[ "def", "create_project", "(", "self", ",", "key", ",", "name", ",", "description", "=", "\"\"", ")", ":", "url", "=", "'rest/api/1.0/projects'", "data", "=", "{", "\"key\"", ":", "key", ",", "\"name\"", ":", "name", ",", "\"description\"", ":", "descriptio...
540d269905c3e7547b666fe30c647b2d512cf358
train
Bitbucket.project_users_with_administrator_permissions
Get project administrators for project :param key: project key :return: project administrators
atlassian/bitbucket.py
def project_users_with_administrator_permissions(self, key): """ Get project administrators for project :param key: project key :return: project administrators """ project_administrators = [user['user'] for user in self.project_users(key) ...
def project_users_with_administrator_permissions(self, key): """ Get project administrators for project :param key: project key :return: project administrators """ project_administrators = [user['user'] for user in self.project_users(key) ...
[ "Get", "project", "administrators", "for", "project", ":", "param", "key", ":", "project", "key", ":", "return", ":", "project", "administrators" ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/bitbucket.py#L81-L92
[ "def", "project_users_with_administrator_permissions", "(", "self", ",", "key", ")", ":", "project_administrators", "=", "[", "user", "[", "'user'", "]", "for", "user", "in", "self", ".", "project_users", "(", "key", ")", "if", "user", "[", "'permission'", "]"...
540d269905c3e7547b666fe30c647b2d512cf358
train
Bitbucket.project_groups
Get Project Groups :param key: :param limit: OPTIONAL: The limit of the number of groups to return, this may be restricted by fixed system limits. Default by built-in method: 99999 :param filter_str: OPTIONAL: group filter string :return:
atlassian/bitbucket.py
def project_groups(self, key, limit=99999, filter_str=None): """ Get Project Groups :param key: :param limit: OPTIONAL: The limit of the number of groups to return, this may be restricted by fixed system limits. Default by built-in method: 99999 :param...
def project_groups(self, key, limit=99999, filter_str=None): """ Get Project Groups :param key: :param limit: OPTIONAL: The limit of the number of groups to return, this may be restricted by fixed system limits. Default by built-in method: 99999 :param...
[ "Get", "Project", "Groups", ":", "param", "key", ":", ":", "param", "limit", ":", "OPTIONAL", ":", "The", "limit", "of", "the", "number", "of", "groups", "to", "return", "this", "may", "be", "restricted", "by", "fixed", "system", "limits", ".", "Default"...
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/bitbucket.py#L94-L109
[ "def", "project_groups", "(", "self", ",", "key", ",", "limit", "=", "99999", ",", "filter_str", "=", "None", ")", ":", "url", "=", "'rest/api/1.0/projects/{key}/permissions/groups'", ".", "format", "(", "key", "=", "key", ")", "params", "=", "{", "}", "if...
540d269905c3e7547b666fe30c647b2d512cf358
train
Bitbucket.repo_groups
Get repository Groups :param project_key: :param repo_key: :param limit: OPTIONAL: The limit of the number of groups to return, this may be restricted by fixed system limits. Default by built-in method: 99999 :param filter_str: OPTIONAL: group filter string ...
atlassian/bitbucket.py
def repo_groups(self, project_key, repo_key, limit=99999, filter_str=None): """ Get repository Groups :param project_key: :param repo_key: :param limit: OPTIONAL: The limit of the number of groups to return, this may be restricted by fixed system limit...
def repo_groups(self, project_key, repo_key, limit=99999, filter_str=None): """ Get repository Groups :param project_key: :param repo_key: :param limit: OPTIONAL: The limit of the number of groups to return, this may be restricted by fixed system limit...
[ "Get", "repository", "Groups", ":", "param", "project_key", ":", ":", "param", "repo_key", ":", ":", "param", "limit", ":", "OPTIONAL", ":", "The", "limit", "of", "the", "number", "of", "groups", "to", "return", "this", "may", "be", "restricted", "by", "...
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/bitbucket.py#L111-L129
[ "def", "repo_groups", "(", "self", ",", "project_key", ",", "repo_key", ",", "limit", "=", "99999", ",", "filter_str", "=", "None", ")", ":", "url", "=", "'rest/api/1.0/projects/{project_key}/repos/{repo_key}/permissions/groups'", ".", "format", "(", "project_key", ...
540d269905c3e7547b666fe30c647b2d512cf358
train
Bitbucket.group_members
Get group of members :param group: :param limit: OPTIONAL: The limit of the number of users to return, this may be restricted by fixed system limits. Default by built-in method: 99999 :return:
atlassian/bitbucket.py
def group_members(self, group, limit=99999): """ Get group of members :param group: :param limit: OPTIONAL: The limit of the number of users to return, this may be restricted by fixed system limits. Default by built-in method: 99999 :return: """ ...
def group_members(self, group, limit=99999): """ Get group of members :param group: :param limit: OPTIONAL: The limit of the number of users to return, this may be restricted by fixed system limits. Default by built-in method: 99999 :return: """ ...
[ "Get", "group", "of", "members", ":", "param", "group", ":", ":", "param", "limit", ":", "OPTIONAL", ":", "The", "limit", "of", "the", "number", "of", "users", "to", "return", "this", "may", "be", "restricted", "by", "fixed", "system", "limits", ".", "...
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/bitbucket.py#L146-L160
[ "def", "group_members", "(", "self", ",", "group", ",", "limit", "=", "99999", ")", ":", "url", "=", "'rest/api/1.0/admin/groups/more-members'", "params", "=", "{", "}", "if", "limit", ":", "params", "[", "'limit'", "]", "=", "limit", "if", "group", ":", ...
540d269905c3e7547b666fe30c647b2d512cf358
train
Bitbucket.all_project_administrators
Get the list of project administrators :return:
atlassian/bitbucket.py
def all_project_administrators(self): """ Get the list of project administrators :return: """ for project in self.project_list(): log.info('Processing project: {0} - {1}'.format(project.get('key'), project.get('name'))) yield { 'project_key...
def all_project_administrators(self): """ Get the list of project administrators :return: """ for project in self.project_list(): log.info('Processing project: {0} - {1}'.format(project.get('key'), project.get('name'))) yield { 'project_key...
[ "Get", "the", "list", "of", "project", "administrators", ":", "return", ":" ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/bitbucket.py#L162-L173
[ "def", "all_project_administrators", "(", "self", ")", ":", "for", "project", "in", "self", ".", "project_list", "(", ")", ":", "log", ".", "info", "(", "'Processing project: {0} - {1}'", ".", "format", "(", "project", ".", "get", "(", "'key'", ")", ",", "...
540d269905c3e7547b666fe30c647b2d512cf358
train
Bitbucket.repo_list
Get repositories list from project :param project_key: :param start: OPTIONAL: The start of the :param limit: OPTIONAL: The limit of the number of repositories to return, this may be restricted by fixed system limits. Default by built-in method: 25 :return:
atlassian/bitbucket.py
def repo_list(self, project_key, start=None, limit=25): """ Get repositories list from project :param project_key: :param start: OPTIONAL: The start of the :param limit: OPTIONAL: The limit of the number of repositories to return, this may be restricted by ...
def repo_list(self, project_key, start=None, limit=25): """ Get repositories list from project :param project_key: :param start: OPTIONAL: The start of the :param limit: OPTIONAL: The limit of the number of repositories to return, this may be restricted by ...
[ "Get", "repositories", "list", "from", "project", ":", "param", "project_key", ":", ":", "param", "start", ":", "OPTIONAL", ":", "The", "start", "of", "the", ":", "param", "limit", ":", "OPTIONAL", ":", "The", "limit", "of", "the", "number", "of", "repos...
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/bitbucket.py#L175-L195
[ "def", "repo_list", "(", "self", ",", "project_key", ",", "start", "=", "None", ",", "limit", "=", "25", ")", ":", "url", "=", "'rest/api/1.0/projects/{projectKey}/repos'", ".", "format", "(", "projectKey", "=", "project_key", ")", "params", "=", "{", "}", ...
540d269905c3e7547b666fe30c647b2d512cf358
train
Bitbucket.create_repo
Create a new repository. Requires an existing project in which this repository will be created. The only parameters which will be used are name and scmId. The authenticated user must have PROJECT_ADMIN permission for the context project to call this resource. :param project_key: The p...
atlassian/bitbucket.py
def create_repo(self, project_key, repository, forkable=False, is_private=True): """Create a new repository. Requires an existing project in which this repository will be created. The only parameters which will be used are name and scmId. The authenticated user must have PROJECT_ADMIN ...
def create_repo(self, project_key, repository, forkable=False, is_private=True): """Create a new repository. Requires an existing project in which this repository will be created. The only parameters which will be used are name and scmId. The authenticated user must have PROJECT_ADMIN ...
[ "Create", "a", "new", "repository", "." ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/bitbucket.py#L197-L228
[ "def", "create_repo", "(", "self", ",", "project_key", ",", "repository", ",", "forkable", "=", "False", ",", "is_private", "=", "True", ")", ":", "url", "=", "'rest/api/1.0/projects/{projectKey}/repos'", ".", "format", "(", "projectKey", "=", "project_key", ")"...
540d269905c3e7547b666fe30c647b2d512cf358
train
Bitbucket.repo_all_list
Get all repositories list from project :param project_key: :return:
atlassian/bitbucket.py
def repo_all_list(self, project_key): """ Get all repositories list from project :param project_key: :return: """ url = 'rest/api/1.0/projects/{projectKey}/repos'.format(projectKey=project_key) params = {} start = 0 params['start'] = start ...
def repo_all_list(self, project_key): """ Get all repositories list from project :param project_key: :return: """ url = 'rest/api/1.0/projects/{projectKey}/repos'.format(projectKey=project_key) params = {} start = 0 params['start'] = start ...
[ "Get", "all", "repositories", "list", "from", "project", ":", "param", "project_key", ":", ":", "return", ":" ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/bitbucket.py#L230-L249
[ "def", "repo_all_list", "(", "self", ",", "project_key", ")", ":", "url", "=", "'rest/api/1.0/projects/{projectKey}/repos'", ".", "format", "(", "projectKey", "=", "project_key", ")", "params", "=", "{", "}", "start", "=", "0", "params", "[", "'start'", "]", ...
540d269905c3e7547b666fe30c647b2d512cf358
train
Bitbucket.get_branches
Retrieve the branches matching the supplied filterText param. The authenticated user must have REPO_READ permission for the specified repository to call this resource. :param start: :param project: :param repository: :param base: base branch/tag to compare each branch to (for the...
atlassian/bitbucket.py
def get_branches(self, project, repository, base=None, filter=None, start=0, limit=99999, details=True, order_by='MODIFICATION'): """ Retrieve the branches matching the supplied filterText param. The authenticated user must have REPO_READ permission for the specified reposit...
def get_branches(self, project, repository, base=None, filter=None, start=0, limit=99999, details=True, order_by='MODIFICATION'): """ Retrieve the branches matching the supplied filterText param. The authenticated user must have REPO_READ permission for the specified reposit...
[ "Retrieve", "the", "branches", "matching", "the", "supplied", "filterText", "param", ".", "The", "authenticated", "user", "must", "have", "REPO_READ", "permission", "for", "the", "specified", "repository", "to", "call", "this", "resource", ".", ":", "param", "st...
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/bitbucket.py#L251-L282
[ "def", "get_branches", "(", "self", ",", "project", ",", "repository", ",", "base", "=", "None", ",", "filter", "=", "None", ",", "start", "=", "0", ",", "limit", "=", "99999", ",", "details", "=", "True", ",", "order_by", "=", "'MODIFICATION'", ")", ...
540d269905c3e7547b666fe30c647b2d512cf358
train
Bitbucket.create_branch
Creates a branch using the information provided in the request. The authenticated user must have REPO_WRITE permission for the context repository to call this resource. :param project_key: The project matching the projectKey supplied in the resource path as shown in URL. :type project_key: str...
atlassian/bitbucket.py
def create_branch(self, project_key, repository, name, start_point, message=""): """Creates a branch using the information provided in the request. The authenticated user must have REPO_WRITE permission for the context repository to call this resource. :param project_key: The project matching ...
def create_branch(self, project_key, repository, name, start_point, message=""): """Creates a branch using the information provided in the request. The authenticated user must have REPO_WRITE permission for the context repository to call this resource. :param project_key: The project matching ...
[ "Creates", "a", "branch", "using", "the", "information", "provided", "in", "the", "request", "." ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/bitbucket.py#L284-L313
[ "def", "create_branch", "(", "self", ",", "project_key", ",", "repository", ",", "name", ",", "start_point", ",", "message", "=", "\"\"", ")", ":", "url", "=", "'rest/api/1.0/projects/{projectKey}/repos/{repository}/branches'", ".", "format", "(", "projectKey", "=",...
540d269905c3e7547b666fe30c647b2d512cf358
train
Bitbucket.delete_branch
Delete branch from related repo :param self: :param project: :param repository: :param name: :param end_point: :return:
atlassian/bitbucket.py
def delete_branch(self, project, repository, name, end_point): """ Delete branch from related repo :param self: :param project: :param repository: :param name: :param end_point: :return: """ url = 'rest/branch-utils/1.0/projects/{project}/...
def delete_branch(self, project, repository, name, end_point): """ Delete branch from related repo :param self: :param project: :param repository: :param name: :param end_point: :return: """ url = 'rest/branch-utils/1.0/projects/{project}/...
[ "Delete", "branch", "from", "related", "repo", ":", "param", "self", ":", ":", "param", "project", ":", ":", "param", "repository", ":", ":", "param", "name", ":", ":", "param", "end_point", ":", ":", "return", ":" ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/bitbucket.py#L315-L330
[ "def", "delete_branch", "(", "self", ",", "project", ",", "repository", ",", "name", ",", "end_point", ")", ":", "url", "=", "'rest/branch-utils/1.0/projects/{project}/repos/{repository}/branches'", ".", "format", "(", "project", "=", "project", ",", "repository", "...
540d269905c3e7547b666fe30c647b2d512cf358
train
Bitbucket.get_pull_requests
Get pull requests :param project: :param repository: :param state: :param order: OPTIONAL: defaults to NEWEST) the order to return pull requests in, either OLDEST (as in: "oldest first") or NEWEST. :param limit: :param start: :retur...
atlassian/bitbucket.py
def get_pull_requests(self, project, repository, state='OPEN', order='newest', limit=100, start=0): """ Get pull requests :param project: :param repository: :param state: :param order: OPTIONAL: defaults to NEWEST) the order to return pull requests in, either OLDEST ...
def get_pull_requests(self, project, repository, state='OPEN', order='newest', limit=100, start=0): """ Get pull requests :param project: :param repository: :param state: :param order: OPTIONAL: defaults to NEWEST) the order to return pull requests in, either OLDEST ...
[ "Get", "pull", "requests", ":", "param", "project", ":", ":", "param", "repository", ":", ":", "param", "state", ":", ":", "param", "order", ":", "OPTIONAL", ":", "defaults", "to", "NEWEST", ")", "the", "order", "to", "return", "pull", "requests", "in", ...
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/bitbucket.py#L332-L364
[ "def", "get_pull_requests", "(", "self", ",", "project", ",", "repository", ",", "state", "=", "'OPEN'", ",", "order", "=", "'newest'", ",", "limit", "=", "100", ",", "start", "=", "0", ")", ":", "url", "=", "'rest/api/1.0/projects/{project}/repos/{repository}...
540d269905c3e7547b666fe30c647b2d512cf358
train
Bitbucket.get_pull_requests_activities
Get pull requests activities :param project: :param repository: :param pull_request_id: the ID of the pull request within the repository :return:
atlassian/bitbucket.py
def get_pull_requests_activities(self, project, repository, pull_request_id): """ Get pull requests activities :param project: :param repository: :param pull_request_id: the ID of the pull request within the repository :return: """ url = 'rest/api/1.0/proj...
def get_pull_requests_activities(self, project, repository, pull_request_id): """ Get pull requests activities :param project: :param repository: :param pull_request_id: the ID of the pull request within the repository :return: """ url = 'rest/api/1.0/proj...
[ "Get", "pull", "requests", "activities", ":", "param", "project", ":", ":", "param", "repository", ":", ":", "param", "pull_request_id", ":", "the", "ID", "of", "the", "pull", "request", "within", "the", "repository", ":", "return", ":" ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/bitbucket.py#L366-L387
[ "def", "get_pull_requests_activities", "(", "self", ",", "project", ",", "repository", ",", "pull_request_id", ")", ":", "url", "=", "'rest/api/1.0/projects/{project}/repos/{repository}/pull-requests/{pullRequestId}/activities'", ".", "format", "(", "project", "=", "project",...
540d269905c3e7547b666fe30c647b2d512cf358
train
Bitbucket.get_pull_requests_changes
Get pull requests changes :param project: :param repository: :param pull_request_id: the ID of the pull request within the repository :return:
atlassian/bitbucket.py
def get_pull_requests_changes(self, project, repository, pull_request_id): """ Get pull requests changes :param project: :param repository: :param pull_request_id: the ID of the pull request within the repository :return: """ url = 'rest/api/1.0/projects/{...
def get_pull_requests_changes(self, project, repository, pull_request_id): """ Get pull requests changes :param project: :param repository: :param pull_request_id: the ID of the pull request within the repository :return: """ url = 'rest/api/1.0/projects/{...
[ "Get", "pull", "requests", "changes", ":", "param", "project", ":", ":", "param", "repository", ":", ":", "param", "pull_request_id", ":", "the", "ID", "of", "the", "pull", "request", "within", "the", "repository", ":", "return", ":" ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/bitbucket.py#L389-L413
[ "def", "get_pull_requests_changes", "(", "self", ",", "project", ",", "repository", ",", "pull_request_id", ")", ":", "url", "=", "'rest/api/1.0/projects/{project}/repos/{repository}/pull-requests/{pullRequestId}/changes'", ".", "format", "(", "project", "=", "project", ","...
540d269905c3e7547b666fe30c647b2d512cf358
train
Bitbucket.get_pull_requests_commits
Get pull requests commits :param project: :param repository: :param pull_request_id: the ID of the pull request within the repository :return:
atlassian/bitbucket.py
def get_pull_requests_commits(self, project, repository, pull_request_id): """ Get pull requests commits :param project: :param repository: :param pull_request_id: the ID of the pull request within the repository :return: """ url = 'rest/api/1.0/projects/{...
def get_pull_requests_commits(self, project, repository, pull_request_id): """ Get pull requests commits :param project: :param repository: :param pull_request_id: the ID of the pull request within the repository :return: """ url = 'rest/api/1.0/projects/{...
[ "Get", "pull", "requests", "commits", ":", "param", "project", ":", ":", "param", "repository", ":", ":", "param", "pull_request_id", ":", "the", "ID", "of", "the", "pull", "request", "within", "the", "repository", ":", "return", ":" ]
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/bitbucket.py#L415-L436
[ "def", "get_pull_requests_commits", "(", "self", ",", "project", ",", "repository", ",", "pull_request_id", ")", ":", "url", "=", "'rest/api/1.0/projects/{project}/repos/{repository}/pull-requests/{pullRequestId}/commits'", ".", "format", "(", "project", "=", "project", ","...
540d269905c3e7547b666fe30c647b2d512cf358
train
Bitbucket.add_pull_request_comment
Add comment into pull request :param project: :param repository: :param pull_request_id: the ID of the pull request within the repository :param text comment text :return:
atlassian/bitbucket.py
def add_pull_request_comment(self, project, repository, pull_request_id, text): """ Add comment into pull request :param project: :param repository: :param pull_request_id: the ID of the pull request within the repository :param text comment text :return: ...
def add_pull_request_comment(self, project, repository, pull_request_id, text): """ Add comment into pull request :param project: :param repository: :param pull_request_id: the ID of the pull request within the repository :param text comment text :return: ...
[ "Add", "comment", "into", "pull", "request", ":", "param", "project", ":", ":", "param", "repository", ":", ":", "param", "pull_request_id", ":", "the", "ID", "of", "the", "pull", "request", "within", "the", "repository", ":", "param", "text", "comment", "...
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/bitbucket.py#L438-L452
[ "def", "add_pull_request_comment", "(", "self", ",", "project", ",", "repository", ",", "pull_request_id", ",", "text", ")", ":", "url", "=", "'rest/api/1.0/projects/{project}/repos/{repository}/pull-requests/{pullRequestId}/comments'", ".", "format", "(", "project", "=", ...
540d269905c3e7547b666fe30c647b2d512cf358
train
Bitbucket.get_pullrequest
Retrieve a pull request. The authenticated user must have REPO_READ permission for the repository that this pull request targets to call this resource. :param project: :param repository: :param pull_request_id: the ID of the pull request within the repository :return:
atlassian/bitbucket.py
def get_pullrequest(self, project, repository, pull_request_id): """ Retrieve a pull request. The authenticated user must have REPO_READ permission for the repository that this pull request targets to call this resource. :param project: :param repository: :param p...
def get_pullrequest(self, project, repository, pull_request_id): """ Retrieve a pull request. The authenticated user must have REPO_READ permission for the repository that this pull request targets to call this resource. :param project: :param repository: :param p...
[ "Retrieve", "a", "pull", "request", ".", "The", "authenticated", "user", "must", "have", "REPO_READ", "permission", "for", "the", "repository", "that", "this", "pull", "request", "targets", "to", "call", "this", "resource", ".", ":", "param", "project", ":", ...
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/bitbucket.py#L454-L467
[ "def", "get_pullrequest", "(", "self", ",", "project", ",", "repository", ",", "pull_request_id", ")", ":", "url", "=", "'rest/api/1.0/projects/{project}/repos/{repository}/pull-requests/{pullRequestId}'", ".", "format", "(", "project", "=", "project", ",", "repository", ...
540d269905c3e7547b666fe30c647b2d512cf358
train
Bitbucket.get_tags
Retrieve the tags matching the supplied filterText param. The authenticated user must have REPO_READ permission for the context repository to call this resource. :param project: :param repository: :param filter: :param start: :param limit: OPTIONAL: The limit of the numbe...
atlassian/bitbucket.py
def get_tags(self, project, repository, filter='', limit=1000, order_by=None, start=0): """ Retrieve the tags matching the supplied filterText param. The authenticated user must have REPO_READ permission for the context repository to call this resource. :param project: :param rep...
def get_tags(self, project, repository, filter='', limit=1000, order_by=None, start=0): """ Retrieve the tags matching the supplied filterText param. The authenticated user must have REPO_READ permission for the context repository to call this resource. :param project: :param rep...
[ "Retrieve", "the", "tags", "matching", "the", "supplied", "filterText", "param", ".", "The", "authenticated", "user", "must", "have", "REPO_READ", "permission", "for", "the", "context", "repository", "to", "call", "this", "resource", ".", ":", "param", "project"...
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/bitbucket.py#L469-L498
[ "def", "get_tags", "(", "self", ",", "project", ",", "repository", ",", "filter", "=", "''", ",", "limit", "=", "1000", ",", "order_by", "=", "None", ",", "start", "=", "0", ")", ":", "url", "=", "'rest/api/1.0/projects/{project}/repos/{repository}/tags'", "...
540d269905c3e7547b666fe30c647b2d512cf358
train
Bitbucket.get_project_tags
Retrieve a tag in the specified repository. The authenticated user must have REPO_READ permission for the context repository to call this resource. Search uri is api/1.0/projects/{projectKey}/repos/{repositorySlug}/tags/{name:.*} :param project: :param repository: :param tag_name...
atlassian/bitbucket.py
def get_project_tags(self, project, repository, tag_name): """ Retrieve a tag in the specified repository. The authenticated user must have REPO_READ permission for the context repository to call this resource. Search uri is api/1.0/projects/{projectKey}/repos/{repositorySlug}/tags/{name...
def get_project_tags(self, project, repository, tag_name): """ Retrieve a tag in the specified repository. The authenticated user must have REPO_READ permission for the context repository to call this resource. Search uri is api/1.0/projects/{projectKey}/repos/{repositorySlug}/tags/{name...
[ "Retrieve", "a", "tag", "in", "the", "specified", "repository", ".", "The", "authenticated", "user", "must", "have", "REPO_READ", "permission", "for", "the", "context", "repository", "to", "call", "this", "resource", ".", "Search", "uri", "is", "api", "/", "...
atlassian-api/atlassian-python-api
python
https://github.com/atlassian-api/atlassian-python-api/blob/540d269905c3e7547b666fe30c647b2d512cf358/atlassian/bitbucket.py#L500-L513
[ "def", "get_project_tags", "(", "self", ",", "project", ",", "repository", ",", "tag_name", ")", ":", "url", "=", "'rest/api/1.0/projects/{project}/repos/{repository}/tags/{tag}'", ".", "format", "(", "project", "=", "project", ",", "repository", "=", "repository", ...
540d269905c3e7547b666fe30c647b2d512cf358