Skip to content

Add doc to get issue from iid #321

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Dec 11, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/gl_objects/issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
issue = project.issues.get(issue_id)
# end project issues get

# project issues get from iid
issue = project.issues.list(iid=issue_iid)[0]
# end project issues get from iid

# project issues create
issue = project.issues.create({'title': 'I have a bug',
'description': 'Something useful here.'})
Expand Down
6 changes: 6 additions & 0 deletions docs/gl_objects/issues.rst
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,12 @@ Get a project issue:
:start-after: # project issues get
:end-before: # end project issues get

Get a project issue from its `iid` (v3 only. Issues are retrieved by iid in V4 by default):

.. literalinclude:: issues.py
:start-after: # project issues get from iid
:end-before: # end project issues get from iid

Create a new issue:

.. literalinclude:: issues.py
Expand Down