summaryrefslogtreecommitdiff
path: root/docs/faq.rst
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain@pocentek.net>2016-06-08 22:30:55 +0200
committerGauvain Pocentek <gauvain@pocentek.net>2016-06-08 22:30:55 +0200
commitc3054592f79caa782ec79816501335e9a5c4e9ed (patch)
treeb9ff83e3d2506f0345cb7d7db3233920bce1dd04 /docs/faq.rst
parent422b163075189eca466077c7320b466ab39f331e (diff)
downloadgitlab-c3054592f79caa782ec79816501335e9a5c4e9ed.tar.gz
docs: start a FAQ
Diffstat (limited to 'docs/faq.rst')
-rw-r--r--docs/faq.rst15
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/faq.rst b/docs/faq.rst
new file mode 100644
index 0000000..7c35567
--- /dev/null
+++ b/docs/faq.rst
@@ -0,0 +1,15 @@
+###
+FAQ
+###
+
+How can I close or reopen an issue?
+===================================
+
+
+Set the issue ``state_event`` attribute to ``close`` or ``reopen`` and save the object:
+
+.. code-block:: python
+
+ issue = my_project.issues.get(issue_id)
+ issue.state_event = 'close'
+ issue.save()