File tree 2 files changed +36
-0
lines changed
2 files changed +36
-0
lines changed Original file line number Diff line number Diff line change @@ -126,6 +126,12 @@ Get time tracking stats::
126
126
127
127
issue.time_stats()
128
128
129
+ On recent versions of Gitlab the time stats are also returned as an issue
130
+ object attribute::
131
+
132
+ issue = project.issue.get(iid)
133
+ print(issue.attributes['time_stats'])
134
+
129
135
Set a time estimate for an issue::
130
136
131
137
issue.time_estimate('3h30m')
Original file line number Diff line number Diff line change @@ -94,3 +94,33 @@ List the diffs for a merge request::
94
94
Get a diff for a merge request::
95
95
96
96
diff = mr.diffs.get(diff_id)
97
+
98
+ Get time tracking stats::
99
+
100
+ merge request.time_stats()
101
+
102
+ On recent versions of Gitlab the time stats are also returned as a merge
103
+ request object attribute::
104
+
105
+ mr = project.mergerequests.get(id)
106
+ print(mr.attributes['time_stats'])
107
+
108
+ Set a time estimate for a merge request::
109
+
110
+ mr.time_estimate('3h30m')
111
+
112
+ Reset a time estimate for a merge request::
113
+
114
+ mr.reset_time_estimate()
115
+
116
+ Add spent time for a merge request::
117
+
118
+ mr.add_spent_time('3h30m')
119
+
120
+ Reset spent time for a merge request::
121
+
122
+ mr.reset_spent_time()
123
+
124
+ Get user agent detail for the issue (admin only)::
125
+
126
+ detail = issue.user_agent_detail()
You can’t perform that action at this time.
0 commit comments