Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion atlassian/jira.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ def add_user_to_application(self, username, application_key):
Add a user to an application
:param username: The username of the user to add.
:param application_key: The application key of the application
:return: True if the user was added to the application, else False
:return: True if the user was added to the application, else False
:see: https://docs.atlassian.com/software/jira/docs/api/REST/7.5.3/#api/2/user-addUserToApplication
"""
params = {
Expand Down Expand Up @@ -1759,6 +1759,18 @@ 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)

def tempo_account_get_rate_table_by_account_id(self, account_id):
"""
Returns a rate table for the specified account.
:param account_id: the account id.
:return:
"""
params = {}
params['scopeType'] = "ACCOUNT"
params['scopeId'] = account_id
url = 'rest/tempo-accounts/1/ratetable'
return self.get(url, params=params)

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.
Expand Down