File tree Expand file tree Collapse file tree 2 files changed +36
-0
lines changed
Expand file tree Collapse file tree 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::
126126
127127 issue.time_stats()
128128
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+
129135Set a time estimate for an issue::
130136
131137 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::
9494Get a diff for a merge request::
9595
9696 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