Skip to content

Commit 28c0480

Browse files
Caramba77Gagnon, Sylvain
andauthored
Add get_project_notification_scheme to jira.py (#907)
Co-authored-by: Gagnon, Sylvain <[email protected]>
1 parent 881087a commit 28c0480

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

atlassian/jira.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2123,6 +2123,19 @@ def get_notification_scheme(self, notification_scheme_id, expand=None):
21232123
params["expand"] = expand
21242124
return self.get(url, params=params)
21252125

2126+
def get_project_notification_scheme(self, project_id_or_key):
2127+
"""
2128+
Gets a notification scheme assigned with a project
2129+
2130+
:param project_id_or_key: str
2131+
:return: data of project notification scheme
2132+
"""
2133+
base_url = self.resource_url("project")
2134+
url = "{base_url}/{project_id_or_key}/notificationscheme".format(
2135+
base_url=base_url, project_id_or_key=project_id_or_key
2136+
)
2137+
return self.get(url)
2138+
21262139
"""
21272140
Resource for associating permission schemes and projects.
21282141
Reference:

0 commit comments

Comments
 (0)