Skip to content

Commit

Permalink
FIX for '\' in Methods for all the tools file(.rst)
Browse files Browse the repository at this point in the history
UPDATE Usage.rst and  Installation.rst with the suggested changes from the PR
FIX bullet section line "23" for ServiceNow.rst
  • Loading branch information
K-Gazdikova committed Jun 22, 2017
1 parent 061e37e commit 0e1b34f
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 37 deletions.
4 changes: 2 additions & 2 deletions read-the-docs/source/Installation.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Installation
============

* Install ticketutil with,
* Install ticketutil with:

.. code:: python
Expand All @@ -13,7 +13,7 @@ Installation

For Python 2.6 and lower, an additional package, importlib, may need to be installed.

* If not installing with pip, a short list of packages defined in the requirements.txt file need to be installed. To install the required packages with,
* If not installing with pip, a short list of packages defined in the requirements.txt file need to be installed. To install the required packages, type:

.. code:: python
Expand Down
10 changes: 5 additions & 5 deletions read-the-docs/source/Redmine.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ Methods

- `create() <#create>`__
- `edit() <#edit>`__
- `add\_comment() <#comment>`__
- `change\_status() <#status>`__
- `remove\_watcher() <#remove_watcher>`__
- `add\_watcher() <#add_watcher>`__
- `add\_attachment() <#add_attachment>`__
- `add_comment() <#comment>`__
- `change_status() <#status>`__
- `remove_watcher() <#remove_watcher>`__
- `add_watcher() <#add_watcher>`__
- `add_attachment() <#add_attachment>`__


create()
Expand Down
25 changes: 12 additions & 13 deletions read-the-docs/source/ServiceNow.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,26 +19,25 @@ API right afterwards. You can also use
`get\_ticket\_content <#content>`__ to get ticket content including
preset field names.

For more information about REST API and fields see ServiceNow's Wiki: -
`REST API <http://wiki.servicenow.com/index.php?title=REST_API>`__ -
`Introduction to
Fields <http://wiki.servicenow.com/index.php?title=Introduction_to_Fields>`__
-
`Dot-Walking <http://wiki.servicenow.com/index.php?title=Dot-Walking>`__
For more information about REST API and fields see ServiceNow's Wiki:

- `REST API <http://wiki.servicenow.com/index.php?title=REST_API>`__
- `Introduction to Fields <http://wiki.servicenow.com/index.php?title=Introduction_to_Fields>`__
- `Dot-Walking <http://wiki.servicenow.com/index.php?title=Dot-Walking>`__


Methods
^^^^^^^

- `set\_ticket\_id() <#set_ticket>`__
- `set_ticket_id() <#set_ticket>`__
- `create() <#create>`__
- `get\_ticket\_content() <#content>`__
- `get_ticket_content() <#content>`__
- `edit() <#edit>`__
- `add\_comment() <#comment>`__
- `change\_status() <#status>`__
- `add\_cc() <#add_cc>`__
- `rewrite\_cc() <#rewrite_cc>`__
- `remove\_cc() <#remove_cc>`__
- `add_comment() <#comment>`__
- `change_status() <#status>`__
- `add_cc() <#add_cc>`__
- `rewrite_cc() <#rewrite_cc>`__
- `remove_cc() <#remove_cc>`__

set_ticket_id()
---------------
Expand Down
29 changes: 15 additions & 14 deletions read-the-docs/source/Usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,17 @@ Work with a new ticket

+ Close ticket Requests session with ``close_requests_session()``.


Work with an existing ticket
----------------------------

There is also a ``set_ticket_id()`` method for a Ticket object. This is
useful if you are working with a Ticket object that already has the
``<ticket_id>`` instance variable set, but would like to begin working
on a separate ticket. Instead of creating a new Ticket object, you can
simply pass an existing ``<ticket_id>`` in to the ``set_ticket_id()``
method to begin working on another ticket.

+ To work on existing tickets, you can also pass in a fourth parameter
when creating a Ticket object: ``<ticket_id>``. The general workflow for
working with existing tickets is as follows:
Expand All @@ -37,18 +48,8 @@ Work with a new ticket

+ Close ticket Requests session with ``close_requests_session()``.

Work with an existing ticket
----------------------------

There is also a ``set_ticket_id()`` method for a Ticket object. This is
useful if you are working with a Ticket object that already has the
``<ticket_id>`` instance variable set, but would like to begin working
on a separate ticket. Instead of creating a new Ticket object, you can
simply pass an existing ``<ticket_id>`` in to the ``set_ticket_id()``
method to begin working on another ticket.

To return the current Ticket object's ticket_id or ticket_url, use the
``get_ticket_id()`` or ``get_ticket_url()`` methods.
+ To return the current Ticket object's ticket_id or ticket_url, use the
``get_ticket_id()`` or ``get_ticket_url()`` methods.


Running unit tests
Expand All @@ -62,8 +63,8 @@ To run unit tests in Bash terminal use this command:
.. seealso::

See the docstrings in the code or the tool-specific files in the docs
and examples directories for more information.
See the docstrings in the code or the tool-specific sections in the documentation for more information on
supported methods and examples.

.. note::
Note on logging: To enable debug logging for ticketutil, set an environment
Expand Down
6 changes: 3 additions & 3 deletions read-the-docs/source/rt.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ Methods

- `create() <#create>`__
- `edit() <#edit>`__
- `add\_comment() <#comment>`__
- `change\_status() <#status>`__
- `add\_attachment() <#add_attachment>`__
- `add_comment() <#comment>`__
- `change_status() <#status>`__
- `add_attachment() <#add_attachment>`__


create()
Expand Down

0 comments on commit 0e1b34f

Please sign in to comment.