summaryrefslogtreecommitdiff
path: root/docs/faq.rst
blob: 7c35567bdf723062c30c8453f5028c1ea3585b3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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()