returns all tickets in a project
http://companydomain.goplanapp.com/project_alias/api/tickets/get_all
http://companydomain.goplanapp.com/api/tickets/get_all?format=json&callback;=handlerFunction&project;=project_alias
XML
<?xml version="1.0" encoding="UTF-8"?>
<tickets type="array">
<ticket>
<assignee-id type="integer" nil="true"></assignee-id>
<author-id type="integer">1</author-id>
<cid type="integer">6</cid>
<closed-by type="integer" nil="true"></closed-by>
<comments-count type="integer">0</comments-count>
<created-at type="datetime">2009-03-19T15:40:47+00:00</created-at>
<description>ahahah</description>
<priority type="integer">3</priority>
<status type="integer">2</status>
<title>hhaahah</title>
<updated-at type="datetime">2009-03-19T17:05:41+00:00</updated-at>
<ref-tags type="array"/>
<tags type="array">
<tag>
<name>tetes</name>
</tag>
</tags>
</ticket>
<ticket>
<assignee-id type="integer" nil="true"></assignee-id>
<author-id type="integer">1</author-id>
<cid type="integer">20</cid>
<closed-by type="integer" nil="true"></closed-by>
<comments-count type="integer">0</comments-count>
<created-at type="datetime">2009-03-24T16:29:41+00:00</created-at>
<description>ggg</description>
<priority type="integer">3</priority>
<status type="integer">0</status>
<title>ggg</title>
<updated-at type="datetime">2009-03-24T17:54:34+00:00</updated-at>
<ref-tags type="array"/>
<tags type="array">
<tag>
<name>cena</name>
</tag>
</tags>
</ticket>
<ticket>
<assignee-id type="integer">1</assignee-id>
<author-id type="integer">1</author-id>
<cid type="integer">21</cid>
<closed-by type="integer" nil="true"></closed-by>
<comments-count type="integer">0</comments-count>
<created-at type="datetime">2009-03-26T16:04:48+00:00</created-at>
<description>asdasda</description>
<priority type="integer">3</priority>
<status type="integer">1</status>
<title>dadada</title>
<updated-at type="datetime">2009-03-26T16:04:48+00:00</updated-at>
<ref-tags type="array"/>
<tags type="array">
<tag>
<name>dev</name>
</tag>
</tags>
</ticket>
</tickets>
JSON
handler_function([{"ticket": {"ref_tags": [], "created_at": "2009/03/19 15:40:47 +0000", "closed_by": null, "title": "hhaahah", "assignee_id": null, "updated_at": "2009/03/19 17:05:41 +0000", "priority": 3, "description": "ahahah", "comments_count": 0, "cid": 6, "author_id": 1, "tags": [{"name": "tetes"}], "status": 2}}, {"ticket": {"ref_tags": [], "created_at": "2009/03/19 18:12:52 +0000", "closed_by": null, "title": "hdhddh", "assignee_id": 1, "updated_at": "2009/04/03 18:55:46 +0100", "priority": 3, "description": "hddhhd", "comments_count": 3, "cid": 8, "author_id": 1, "tags": [{"name": "cena"}], "status": 1}}, {"ticket": {"ref_tags": [], "created_at": "2009/03/19 18:22:38 +0000", "closed_by": null, "title": "wywywy", "assignee_id": null, "updated_at": "2009/03/19 18:22:50 +0000", "priority": 3, "description": "wywyyw", "comments_count": 1, "cid": 10, "author_id": 1, "tags": [], "status": 0}}, {"ticket": {"ref_tags": [], "created_at": "2009/03/20 14:39:24 +0000", "closed_by": null, "title": "gagaag", "assignee_id": 2, "updated_at": "2009/04/03 18:48:22 +0100", "priority": 4, "description": "gaaggaag", "comments_count": 1, "cid": 12, "author_id": 4, "tags": [{"name": "ssss"}], "status": 1}}, {"ticket": {"ref_tags": [], "created_at": "2009/03/20 19:10:16 +0000", "closed_by": null, "title": "vzvzv", "assignee_id": 4, "updated_at": "2009/03/25 19:38:29 +0000", "priority": 3, "description": "zvzv", "comments_count": 0, "cid": 13, "author_id": 1, "tags": [], "status": 1}}, {"ticket": {"ref_tags": [], "created_at": "2009/03/20 19:11:47 +0000", "closed_by": null, "title": "fafaffaafaf", "assignee_id": null, "updated_at": "2009/03/20 19:11:47 +0000", "priority": 3, "description": "afaf", "comments_count": 0, "cid": 14, "author_id": 1, "tags": [{"name": "fafa"}], "status": 0}}, {"ticket": {"ref_tags": [], "created_at": "2009/03/20 19:18:16 +0000", "closed_by": null, "title": "dgdggd", "assignee_id": null, "updated_at": "2009/03/20 19:18:16 +0000", "priority": 3, "description": "dggddg", "comments_count": 0, "cid": 16, "author_id": 1, "tags": [], "status": 0}}, {"ticket": {"ref_tags": [], "created_at": "2009/03/24 16:29:41 +0000", "closed_by": null, "title": "ggg", "assignee_id": null, "updated_at": "2009/03/24 17:54:34 +0000", "priority": 3, "description": "ggg", "comments_count": 0, "cid": 20, "author_id": 1, "tags": [{"name": "cena"}], "status": 0}}, {"ticket": {"ref_tags": [], "created_at": "2009/03/26 16:04:48 +0000", "closed_by": null, "title": "dadada", "assignee_id": 1, "updated_at": "2009/03/26 16:04:48 +0000", "priority": 3, "description": "asdasda", "comments_count": 0, "cid": 21, "author_id": 1, "tags": [{"name": "dev"}], "status": 1}}])
returns a single ticket information
http://companydomain.goplanapp.com/projectalias/api/tickets/get/6
http://companydomain.goplanapp.com/api/tickets/get?id=6&project;=projectalias&format;=json&callback;=handler
XML
<?xml version="1.0" encoding="UTF-8"?>
<ticket>
<cid type="integer">6</cid>
<comments-count type="integer">0</comments-count>
<created-at type="datetime">2009-03-19T15:40:47+00:00</created-at>
<description>ahahah</description>
<priority type="integer">3</priority>
<status type="integer">2</status>
<title>hhaahah</title>
<updated-at type="datetime">2009-03-19T17:05:41+00:00</updated-at>
<ref-tags type="array"/>
<author>
<alias>john</alias>
<created-at type="datetime">2009-03-17T15:05:51+00:00</created-at>
<email>john@user_email.com</email>
<name>John</name>
<picture-url>http://goplanapp.com/content/server.jpg</picture-url>
<time-zone>Lisbon</time-zone>
<updated-at type="datetime">2009-04-06T13:17:08+01:00</updated-at>
<user-type type="integer">0</user-type>
</author>
<tags type="array">
<tag>
<name>tetes</name>
</tag>
</tags>
<comments type="array"/>
</ticket>
JSON
{"ticket": {"ref_tags": [], "created_at": "2009/03/19 15:40:47 +0000", "author": {"name": "John", "created_at": "2009/03/17 15:05:51 +0000", "updated_at": "2009/04/06 13:17:08 +0100", "picture_url": "http://goplanapp.com/content/server.jpg", "user_type": 0, "alias": "john", "time_zone": "Lisbon", "email": "john@user_email.com"}, "title": "hhaahah", "updated_at": "2009/03/19 17:05:41 +0000", "priority": 3, "description": "ahahah", "comments_count": 0, "cid": 6, "tags": [{"name": "tetes"}], "status": 2, "comments": []}}
creates a new ticket (or sub-ticket) and returns it
http://company_alias.goplanapp.com/project_alias/api/tickets/create - pass the other parameters by POST
http://company_alias.goplanapp.com/api/tickets/create?format=json&callback;=handlerfunction&project;=project_alias&ticket;[title]=design&ticket;[description]=designing&ticket;[priority]=3&assignee;_id=5&tags;[]=design&tags;[]=development
XML
<?xml version="1.0" encoding="UTF-8"?>
<ticket>
<cid type="integer">6</cid>
<comments-count type="integer">0</comments-count>
<created-at type="datetime">2009-03-19T15:40:47+00:00</created-at>
<description>ahahah</description>
<priority type="integer">3</priority>
<status type="integer">2</status>
<title>hhaahah</title>
<updated-at type="datetime">2009-03-19T17:05:41+00:00</updated-at>
<ref-tags type="array"/>
<author>
<alias>john</alias>
<created-at type="datetime">2009-03-17T15:05:51+00:00</created-at>
<email>john@user_email.com</email>
<name>John</name>
<picture-url>http://goplanapp.com/content/server.jpg</picture-url>
<time-zone>Lisbon</time-zone>
<updated-at type="datetime">2009-04-06T13:17:08+01:00</updated-at>
<user-type type="integer">0</user-type>
</author>
<tags type="array">
<tag>
<name>tetes</name>
</tag>
</tags>
<comments type="array"/>
</ticket>
JSON
{"ticket": {"ref_tags": [], "created_at": "2009/03/19 15:40:47 +0000", "author": {"name": "John", "created_at": "2009/03/17 15:05:51 +0000", "updated_at": "2009/04/06 13:17:08 +0100", "picture_url": "http://goplanapp.com/content/server.jpg", "user_type": 0, "alias": "john", "time_zone": "Lisbon", "email": "john@user_email.com"}, "title": "hhaahah", "updated_at": "2009/03/19 17:05:41 +0000", "priority": 3, "description": "ahahah", "comments_count": 0, "cid": 6, "tags": [{"name": "tetes"}], "status": 2, "comments": []}}
deletes a ticket from the project and returns it
http://company_alias.goplanapp.com/projectalias/api/tickets/destroy/6
http://company_alias.goplanapp.com/api/tickets/destroy?id=6&project;=projectalias&format;=json&callback;=handler
XML
<?xml version="1.0" encoding="UTF-8"?>
<ticket>
<cid type="integer">6</cid>
<comments-count type="integer">0</comments-count>
<created-at type="datetime">2009-03-19T15:40:47+00:00</created-at>
<description>ahahah</description>
<priority type="integer">3</priority>
<status type="integer">2</status>
<title>hhaahah</title>
<updated-at type="datetime">2009-03-19T17:05:41+00:00</updated-at>
<ref-tags type="array"/>
<author>
<alias>john</alias>
<created-at type="datetime">2009-03-17T15:05:51+00:00</created-at>
<email>john@user_email.com</email>
<name>John</name>
<picture-url>http://goplanapp.com/content/server.jpg</picture-url>
<time-zone>Lisbon</time-zone>
<updated-at type="datetime">2009-04-06T13:17:08+01:00</updated-at>
<user-type type="integer">0</user-type>
</author>
<tags type="array">
<tag>
<name>tetes</name>
</tag>
</tags>
<comments type="array"/>
</ticket>
JSON
{"ticket": {"ref_tags": [], "created_at": "2009/03/19 15:40:47 +0000", "author": {"name": "John", "created_at": "2009/03/17 15:05:51 +0000", "updated_at": "2009/04/06 13:17:08 +0100", "picture_url": "http://goplanapp.com/content/server.jpg", "user_type": 0, "alias": "john", "time_zone": "Lisbon", "email": "john@user_email.com"}, "title": "hhaahah", "updated_at": "2009/03/19 17:05:41 +0000", "priority": 3, "description": "ahahah", "comments_count": 0, "cid": 6, "tags": [{"name": "tetes"}], "status": 2, "comments": []}}
updates an existing ticket and returns it
http://company_alias.goplanapp.com/project_alias/api/tickets/update/3 - pass the other parameters by POST
http://company_alias.goplanapp.com/api/tickets/update?id=3&format;=json&callback;=handlerfunction&project;=project_alias&ticket;[title]=design&ticket;[description]=designing&ticket;[priority]=3&assignee;_id=5&tags;[]=design&tags;[]=development
XML
<?xml version="1.0" encoding="UTF-8"?>
<ticket>
<cid type="integer">6</cid>
<comments-count type="integer">0</comments-count>
<created-at type="datetime">2009-03-19T15:40:47+00:00</created-at>
<description>ahahah</description>
<priority type="integer">3</priority>
<status type="integer">2</status>
<title>hhaahah</title>
<updated-at type="datetime">2009-03-19T17:05:41+00:00</updated-at>
<ref-tags type="array"/>
<author>
<alias>john</alias>
<created-at type="datetime">2009-03-17T15:05:51+00:00</created-at>
<email>john@user_email.com</email>
<name>John</name>
<picture-url>http://goplanapp.com/content/server.jpg</picture-url>
<time-zone>Lisbon</time-zone>
<updated-at type="datetime">2009-04-06T13:17:08+01:00</updated-at>
<user-type type="integer">0</user-type>
</author>
<tags type="array">
<tag>
<name>tetes</name>
</tag>
</tags>
<comments type="array"/>
</ticket>
JSON
{"ticket": {"ref_tags": [], "created_at": "2009/03/19 15:40:47 +0000", "author": {"name": "John", "created_at": "2009/03/17 15:05:51 +0000", "updated_at": "2009/04/06 13:17:08 +0100", "picture_url": "http://goplanapp.com/content/server.jpg", "user_type": 0, "alias": "john", "time_zone": "Lisbon", "email": "@user_email.com@user_email.com"}, "title": "hhaahah", "updated_at": "2009/03/19 17:05:41 +0000", "priority": 3, "description": "ahahah", "comments_count": 0, "cid": 6, "tags": [{"name": "tetes"}], "status": 2, "comments": []}}
Follow us on Twitter and Facebook. Talk to us and Get Satisfaction.
Goplan is a product of Reinhardt Media, Ltd. | Contact support | Terms of Service