Skip to content

Commit 4ec70d2

Browse files
committed
Add get_current_user method to CloudJira class
1 parent 46566d7 commit 4ec70d2

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

atlassian/jira/cloud/cloud.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,4 +608,14 @@ def add_worklog(
608608
if visibility:
609609
data["visibility"] = visibility
610610

611-
return self.post(endpoint, data=data)
611+
return self.post(endpoint, data=data)
612+
613+
def get_current_user(self) -> Dict[str, Any]:
614+
"""
615+
Get current user information.
616+
617+
Returns:
618+
Dictionary containing the current user data
619+
"""
620+
endpoint = self.get_endpoint("user_current")
621+
return self.get(endpoint)

0 commit comments

Comments
 (0)