Skip to content

Commit a3023c4

Browse files
committed
Add info
1 parent d192b15 commit a3023c4

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

atlassian/jira.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5792,3 +5792,18 @@ def duplicated_account_checks_count(self) -> T_resp_json:
57925792
"""
57935793
response = self.get("rest/api/2/user/duplicated/count")
57945794
return response
5795+
5796+
def dark_feature_management(self, key: str, enable: bool = True) -> T_resp_json:
5797+
"""
5798+
Dark Feature Management
5799+
https://confluence.atlassian.com/jirakb/dark-feature-management-1063554355.html
5800+
https://confluence.atlassian.com/jirakb/how-to-manage-dark-features-in-jira-server-and-data-center-959286331.html
5801+
i.e. sd.sla.improved.rendering.enabled
5802+
:return:
5803+
"""
5804+
if enable:
5805+
data = {"enabled": "true"}
5806+
else:
5807+
data = {"enabled": "false"}
5808+
response = self.put(f"/rest/internal/1.0/darkFeatures/{key}", data=data)
5809+
return response

0 commit comments

Comments
 (0)