Error while trying to update a ticket

39 views
Skip to first unread message

Deepan Chakravarthy

unread,
Nov 21, 2016, 8:45:50 AM11/21/16
to Assembla API Development

Hi Team, 
I want to update custom fields in Assembla by automation script.
For that I am using curl with X-api-key and X-api-secret
I am getting "Couldn't find WorkflowPropertyDef with 'id'=1435-created-for-testing [WHERE `workflow_property_defs`.`space_tool_id` = ?]"}  error
Could you please help me out to update the ticket?

Thanks
Deepan

Stanislav Kolotinskiy

unread,
Nov 21, 2016, 9:55:41 AM11/21/16
to Deepan Chakravarthy, Assembla API Development
Hi Deepan,

you have to pass only the numeric ID, i.e. 1435 . Please let me know if that helps.

Regards,
Stanislav

--
You received this message because you are subscribed to the Google Groups "Assembla API Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to assembla-api-d...@googlegroups.com.
To post to this group, send email to assembla...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Deepan Chakravarthy

unread,
Nov 22, 2016, 3:31:57 AM11/22/16
to Stanislav Kolotinskiy, Assembla API Development
Hi Stanislav,

Its not working even If I use only the ID =1435 also.


Regards,
Deepan Chakravarthy
Mobile no:+91-9741163389


On Mon, Nov 21, 2016 at 8:25 PM, Stanislav Kolotinskiy <stan...@assembla.com> wrote:
Hi Deepan,

you have to pass only the numeric ID, i.e. 1435 . Please let me know if that helps.

Regards,
Stanislav

On Nov 21, 2016, at 15:45, Deepan Chakravarthy <m.deepanchakravarthy@gmail.com> wrote:


Hi Team, 
I want to update custom fields in Assembla by automation script.
For that I am using curl with X-api-key and X-api-secret
I am getting "Couldn't find WorkflowPropertyDef with 'id'=1435-created-for-testing [WHERE `workflow_property_defs`.`space_tool_id` = ?]"}  error
Could you please help me out to update the ticket?

Thanks
Deepan

--
You received this message because you are subscribed to the Google Groups "Assembla API Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to assembla-api-dev+unsubscribe@googlegroups.com.
To post to this group, send email to assembla-api-dev@googlegroups.com.

Deepan Chakravarthy

unread,
Nov 28, 2016, 12:06:08 PM11/28/16
to Assembla API Development
Hi Stanislav,

Any update on this?
I have used only the ID, but its not working.

Thanks
Deepan
Message has been deleted

Stanislav Kolotinskiy

unread,
Dec 15, 2016, 2:45:26 AM12/15/16
to Assembla API Development
Hi Deepan,

I’m sorry for the delay. Could you please provide the whole curl request?

Regards,
Stanislav

On Nov 30, 2016, at 17:05, Deepan Chakravarthy <m.deepanch...@gmail.com> wrote:

--
You received this message because you are subscribed to the Google Groups "Assembla API Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to assembla-api-d...@googlegroups.com.
To post to this group, send email to assembla...@googlegroups.com.

Deepan Chakravarthy

unread,
Dec 16, 2016, 5:20:46 AM12/16/16
to Stanislav Kolotinskiy, Assembla API Development
Hi Stanislav,

Below is the command which I have used to update a ticket

curl -H "X-Api-Key: *************" -H "X-Api-Secret: ********" -H "Content-type: application/json" -X PUT -d '{"custom_field":{"title":"OS"}}' https://api.assembla.com/v1/spaces/gm-info3-cr/tickets/custom_fields/1435.json

Please check and suggest.

Regards,
Deepan Chakravarthy
Mobile no:+91-9741163389


On Thu, Dec 15, 2016 at 1:15 PM, Stanislav Kolotinskiy <stan...@assembla.com> wrote:
Hi Deepan,

I’m sorry for the delay. Could you please provide the whole curl request?

Regards,
Stanislav
On Nov 30, 2016, at 17:05, Deepan Chakravarthy <m.deepanchakravarthy@gmail.com> wrote:



On Monday, November 28, 2016 at 12:06:08 PM UTC-5, Deepan Chakravarthy wrote:
Hi Stanislav,

Any update on this?
I have used only the ID, but its not working.

Thanks
Deepan

On Monday, November 21, 2016 at 8:45:50 AM UTC-5, Deepan Chakravarthy wrote:

Hi Team, 
I want to update custom fields in Assembla by automation script.
For that I am using curl with X-api-key and X-api-secret
I am getting "Couldn't find WorkflowPropertyDef with 'id'=1435-created-for-testing [WHERE `workflow_property_defs`.`space_tool_id` = ?]"}  error
Could you please help me out to update the ticket?

Thanks
Deepan

--
You received this message because you are subscribed to the Google Groups "Assembla API Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to assembla-api-dev+unsubscribe@googlegroups.com.
To post to this group, send email to assembla-api-dev@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "Assembla API Development" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/assembla-api-dev/DDbJSKYX0II/unsubscribe.
To unsubscribe from this group and all its topics, send an email to assembla-api-dev+unsubscribe@googlegroups.com.
To post to this group, send email to assembla-api-dev@googlegroups.com.

Stanislav Kolotinskiy

unread,
Dec 16, 2016, 5:54:20 AM12/16/16
to Assembla API Development
Hi Deepan,

well, this is actually the wrong endpoint. In order to update a ticket, you have to send a PUT request to /v1/spaces/:space_id/tickets/:id.json . For more details, please check out http://api-doc.assembla.com/content/ref/tickets_update.html and let me know if you need any more help.

Regards,
Stanislav

Deepan Chakravarthy

unread,
Dec 22, 2016, 8:08:01 AM12/22/16
to Stanislav Kolotinskiy, Assembla API Development
Hi Stanislav,

I am using below command, but its giving "Access Denied" error, but the same API key is working for fetching data.

curl -i -X PUT -H "X-Api-Key: xxxxxx" -u "X-Api-Secret: xxxxx" -H "Content-type: application/json" -d '{"ticket":{"summary":"Data"}}' https://api.assembla.com/spaces/gm-info3-cr/tickets/1435-created-for-testing.xml

When I hit the URL "https://api.assembla.com/spaces/gm-info3-cr/tickets/1435-created-for-testing.xml" in my browser, its giving me the xml file output.

Could you please help me out with this issue?
is the update will work only using ""Authorization: Bearer _token" ? Please clarify

Regards,
Deepan Chakravarthy
Mobile no:+91-9741163389


On Fri, Dec 16, 2016 at 4:24 PM, Stanislav Kolotinskiy <stan...@assembla.com> wrote:
Hi Deepan,

well, this is actually the wrong endpoint. In order to update a ticket, you have to send a PUT request to /v1/spaces/:space_id/tickets/:id.json . For more details, please check out http://api-doc.assembla.com/content/ref/tickets_update.html and let me know if you need any more help.

Regards,
Stanislav
On Dec 16, 2016, at 12:20, Deepan Chakravarthy <m.deepanchakravarthy@gmail.com> wrote:

Hi Stanislav,

Below is the command which I have used to update a ticket

curl -H "X-Api-Key: *************" -H "X-Api-Secret: ********" -H "Content-type: application/json" -X PUT -d '{"custom_field":{"title":"OS"}}' https://api.assembla.com/v1/spaces/gm-info3-cr/tickets/custom_fields/1435.json

Please check and suggest.

Regards,
Deepan Chakravarthy
Mobile no:+91-9741163389


On Thu, Dec 15, 2016 at 1:15 PM, Stanislav Kolotinskiy <stan...@assembla.com> wrote:
Hi Deepan,

I’m sorry for the delay. Could you please provide the whole curl request?

Regards,
Stanislav

Stanislav Kolotinskiy

unread,
Dec 26, 2016, 2:30:43 AM12/26/16
to Deepan Chakravarthy, Assembla API Development
Hi Deepan,

you are actually hitting the wrong endpoint. It should be https://api.assembla.com/v1/spaces/gm-info-3-cr/tickets/1435.xml - please note /v1 before /spaces . Please let me know if that helps.

Regards,
Stanislav

To unsubscribe from this group and stop receiving emails from it, send an email to assembla-api-d...@googlegroups.com.
To post to this group, send email to assembla...@googlegroups.com.

Deepan Chakravarthy

unread,
Dec 26, 2016, 4:56:31 AM12/26/16
to Stanislav Kolotinskiy, Assembla API Development
Hi Stanislav,

I am getting below error

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    28    0     0  100    28      0     33 --:--:-- --:--:-- --:--:--    46HTTP/1.1 204 No Content
Date: Mon, 26 Dec 2016 09:50:23 GMT
Content-Type: text/plain
Content-Length: 0
Connection: keep-alive
Set-Cookie: __cfduid=d0f59a3835a06447692c8af5a7dcb03071482745823; expires=Tue, 26-Dec-17 09:50:23 GMT; path=/; domain=.assembla.com; HttpOnly
Cache-Control: no-cache
X-XSS-Protection: 1; mode=block
X-Request-Id: db72c928-6694-4b46-9ece-2b0772dc08e4
X-Runtime: 0.042600
X-Frame-Options: SAMEORIGIN
X-Content-Type-Options: nosniff
X-Powered-By: Phusion Passenger 5.0.28
Status: 204 No Content
Server: cloudflare-nginx
CF-RAY: 3173a0d5fea42fe7-MAA


Regards,
Deepan Chakravarthy
Mobile no:+91-9741163389


On Mon, Dec 26, 2016 at 1:00 PM, Stanislav Kolotinskiy <stan...@assembla.com> wrote:
Hi Deepan,

you are actually hitting the wrong endpoint. It should be https://api.assembla.com/v1/spaces/gm-info-3-cr/tickets/1435.xml - please note /v1 before /spaces . Please let me know if that helps.

Regards,
Stanislav
On Dec 22, 2016, at 15:08, Deepan Chakravarthy <m.deepanchakravarthy@gmail.com> wrote:

Hi Stanislav,

I am using below command, but its giving "Access Denied" error, but the same API key is working for fetching data.

curl -i -X PUT -H "X-Api-Key: xxxxxx" -u "X-Api-Secret: xxxxx" -H "Content-type: application/json" -d '{"ticket":{"summary":"Data"}}' https://api.assembla.com/spaces/gm-info3-cr/tickets/1435-created-for-testing.xml

When I hit the URL "https://api.assembla.com/spaces/gm-info3-cr/tickets/1435-created-for-testing.xml" in my browser, its giving me the xml file output.

Could you please help me out with this issue?
is the update will work only using ""Authorization: Bearer _token" ? Please clarify

Regards,
Deepan Chakravarthy
Mobile no:+91-9741163389


On Fri, Dec 16, 2016 at 4:24 PM, Stanislav Kolotinskiy <stan...@assembla.com> wrote:
Hi Deepan,

well, this is actually the wrong endpoint. In order to update a ticket, you have to send a PUT request to /v1/spaces/:space_id/tickets/:id.json . For more details, please check out http://api-doc.assembla.com/content/ref/tickets_update.html and let me know if you need any more help.

Regards,
Stanislav

Stanislav Kolotinskiy

unread,
Dec 26, 2016, 7:00:28 AM12/26/16
to Deepan Chakravarthy, Assembla API Development
This isn’t an error - 204 means successful update.

Regards,
Stanislav

Deepan Chakravarthy

unread,
Dec 26, 2016, 7:31:10 AM12/26/16
to Stanislav Kolotinskiy, Assembla API Development
Hi Stanislav,

I need to update summary of this 1435 ticket but its not updating.

Please correct me if I am wrong.

using below PUT command.

curl -i -X PUT -H "X-Api-Key: xxxxxxxx" -u "X-Api-Secret: xxxxxxx" -H "Content-type: application/json" -d '{"ticket":{"summary":"Ddata values"}}' https://api.assembla.com/v1/spaces/gm-info-3-cr/tickets/1435.xml


Statuses on success:

  • 200 OK Success from a GET, PUT or DELETE operation;
  • 201 Created Success from a POST operation;
  • 204 No Content Success from a GET operation with empty data;

Regards,
Deepan Chakravarthy
Mobile no:+91-9741163389


On Mon, Dec 26, 2016 at 5:30 PM, Stanislav Kolotinskiy <stan...@assembla.com> wrote:
This isn’t an error - 204 means successful update.

Regards,
Stanislav
On Dec 22, 2016, at 15:08, Deepan Chakravarthy <m.deepanch...@gmail.com> wrote:

Hi Stanislav,

Stanislav Kolotinskiy

unread,
Dec 27, 2016, 7:43:35 AM12/27/16
to Deepan Chakravarthy, Assembla API Development
Hi Deepan,

command looks good. What’s the response code?

Regards,
Stanislav

To unsubscribe from this group and stop receiving emails from it, send an email to assembla-api-d...@googlegroups.com.
To post to this group, send email to assembla...@googlegroups.com.

Deepan Chakravarthy

unread,
Dec 27, 2016, 10:13:37 AM12/27/16
to Stanislav Kolotinskiy, Assembla API Development
Hi Stanislav,

Below is the output. you could observe 204 as response code.

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    37    0     0  100    37      0     22  0:00:01  0:00:01 --:--:--    25HTTP/1.1 204 No Content
Date: Tue, 27 Dec 2016 15:12:22 GMT
Content-Type: text/plain
Content-Length: 0
Connection: keep-alive
Set-Cookie: __cfduid=d4275eb911349e52424dcc4e56ce99e821482851540; expires=Wed, 27-Dec-17 15:12:20 GMT; path=/; domain=.assembla.com; HttpOnly
Cache-Control: no-cache
X-XSS-Protection: 1; mode=block
X-Request-Id: 5c86153f-0d8d-4766-85a5-952d337df14f
X-Runtime: 0.043573
X-Frame-Options: SAMEORIGIN
X-Content-Type-Options: nosniff
X-Powered-By: Phusion Passenger 5.0.28
Status: 204 No Content
Server: cloudflare-nginx
CF-RAY: 317db5d29d222fc3-MAA


Regards,
Deepan Chakravarthy
Mobile no:+91-9741163389


On Tue, Dec 27, 2016 at 6:13 PM, Stanislav Kolotinskiy <stan...@assembla.com> wrote:
Hi Deepan,

command looks good. What’s the response code?

Regards,
Stanislav
On Dec 26, 2016, at 14:31, Deepan Chakravarthy <m.deepanchakravarthy@gmail.com> wrote:

Hi Stanislav,

I need to update summary of this 1435 ticket but its not updating.

Please correct me if I am wrong.

using below PUT command.

curl -i -X PUT -H "X-Api-Key: xxxxxxxx" -u "X-Api-Secret: xxxxxxx" -H "Content-type: application/json" -d '{"ticket":{"summary":"Ddata values"}}' https://api.assembla.com/v1/spaces/gm-info-3-cr/tickets/1435.xml


Statuses on success:

  • 200 OK Success from a GET, PUT or DELETE operation;
  • 201 Created Success from a POST operation;
  • 204 No Content Success from a GET operation with empty data;

Regards,
Deepan Chakravarthy
Mobile no:+91-9741163389


On Mon, Dec 26, 2016 at 5:30 PM, Stanislav Kolotinskiy <stan...@assembla.com> wrote:
This isn’t an error - 204 means successful update.

Regards,
Stanislav

Stanislav Kolotinskiy

unread,
Dec 27, 2016, 10:47:11 AM12/27/16
to Deepan Chakravarthy, Assembla API Development
OK, that looks good - 204 is what is returned from Assembla API on successful PUT requests.

Regards,
Stanislav

Deepan Chakravarthy

unread,
Dec 27, 2016, 11:00:40 AM12/27/16
to Stanislav Kolotinskiy, Assembla API Development
Hi Stanislav,

But the ticket is not updating.

Regards,
Deepan Chakravarthy
Mobile no:+91-9741163389


On Tue, Dec 27, 2016 at 9:17 PM, Stanislav Kolotinskiy <stan...@assembla.com> wrote:
OK, that looks good - 204 is what is returned from Assembla API on successful PUT requests.

Regards,
Stanislav

Stanislav Kolotinskiy

unread,
Dec 28, 2016, 5:04:19 AM12/28/16
to Deepan Chakravarthy, Assembla API Development
Hi Deepan,

is it because of the typo in space name? I can see that it should be gm-info3-cr not gm-info-3-cr. Also, please try to use .json instead of .xml - will this help?

Regards,
Stanislav

Deepan Chakravarthy

unread,
Dec 28, 2016, 5:26:13 AM12/28/16
to Stanislav Kolotinskiy, Assembla API Development
Hi Stanislav,

Tried below command, still getting 204 and the ticket is not updated.

curl -i -X PUT -H "X-Api-Key: ***********" -u "X-Api-Secret: **********" -H "Content-type: application/json" -d '{"ticket":{"description":"Ddata-values"}}' https://api.assembla.com/v1/spaces/gm-info3-cr/tickets/1435-created-for-testing.json


Regards,
Deepan Chakravarthy
Mobile no:+91-9741163389


On Wed, Dec 28, 2016 at 3:34 PM, Stanislav Kolotinskiy <stan...@assembla.com> wrote:
Hi Deepan,

is it because of the typo in space name? I can see that it should be gm-info3-cr not gm-info-3-cr. Also, please try to use .json instead of .xml - will this help?

Regards,
Stanislav
On Dec 27, 2016, at 18:00, Deepan Chakravarthy <m.deepanchakravarthy@gmail.com> wrote:

Hi Stanislav,

But the ticket is not updating.

Regards,
Deepan Chakravarthy
Mobile no:+91-9741163389


On Tue, Dec 27, 2016 at 9:17 PM, Stanislav Kolotinskiy <stan...@assembla.com> wrote:
OK, that looks good - 204 is what is returned from Assembla API on successful PUT requests.

Regards,
Stanislav

Stanislav Kolotinskiy

unread,
Dec 28, 2016, 4:31:34 PM12/28/16
to Deepan Chakravarthy, Assembla API Development
OK,

I think I see the issue now. Your ticket is 1435-a, not 1435-created-for-testing, since you updated summary. However, in order to exclude errors, you better include only ticket number - /tickets/1435.xml or /tickets/1435.json. Please try that and let me know if it helps

Regards,
Stanislav

Deepan Chakravarthy

unread,
Dec 30, 2016, 4:37:09 AM12/30/16
to Stanislav Kolotinskiy, Assembla API Development
Hi Stanislav,

I tried that as well, but its not working.

curl -i -X PUT -H "X-Api-Key: xxxxxxx" -u "X-Api-Secret: xxxxxx" -H "Content-type: application/json" -d '{"ticket":{"description":"Ddata-values"}}' https://api.assembla.com/v1/spaces/gm-info3-cr/tickets/1435.json


Regards,
Deepan Chakravarthy
Mobile no:+91-9741163389


On Thu, Dec 29, 2016 at 3:01 AM, Stanislav Kolotinskiy <stan...@assembla.com> wrote:
OK,

I think I see the issue now. Your ticket is 1435-a, not 1435-created-for-testing, since you updated summary. However, in order to exclude errors, you better include only ticket number - /tickets/1435.xml or /tickets/1435.json. Please try that and let me know if it helps

Regards,
Stanislav
On Dec 28, 2016, at 12:26, Deepan Chakravarthy <m.deepanchakravarthy@gmail.com> wrote:

Hi Stanislav,

Tried below command, still getting 204 and the ticket is not updated.

curl -i -X PUT -H "X-Api-Key: ***********" -u "X-Api-Secret: **********" -H "Content-type: application/json" -d '{"ticket":{"description":"Ddata-values"}}' https://api.assembla.com/v1/spaces/gm-info3-cr/tickets/1435-created-for-testing.json


Regards,
Deepan Chakravarthy
Mobile no:+91-9741163389


On Wed, Dec 28, 2016 at 3:34 PM, Stanislav Kolotinskiy <stan...@assembla.com> wrote:
Hi Deepan,

is it because of the typo in space name? I can see that it should be gm-info3-cr not gm-info-3-cr. Also, please try to use .json instead of .xml - will this help?

Regards,
Stanislav

Deepan Chakravarthy

unread,
Jan 17, 2017, 1:51:26 AM1/17/17
to Stanislav Kolotinskiy, Assembla API Development
Hi Stanislav,

Is there any update on this ?

Regards,
Deepan Chakravarthy
Mobile no:+91-9741163389


On Fri, Dec 30, 2016 at 3:07 PM, Deepan Chakravarthy <m.deepanch...@gmail.com> wrote:
Hi Stanislav,

I tried that as well, but its not working.

curl -i -X PUT -H "X-Api-Key: xxxxxxx" -u "X-Api-Secret: xxxxxx" -H "Content-type: application/json" -d '{"ticket":{"description":"Ddata-values"}}' https://api.assembla.com/v1/spaces/gm-info3-cr/tickets/1435.json


Regards,
Deepan Chakravarthy
Mobile no:+91-9741163389


On Thu, Dec 29, 2016 at 3:01 AM, Stanislav Kolotinskiy <stan...@assembla.com> wrote:
OK,

I think I see the issue now. Your ticket is 1435-a, not 1435-created-for-testing, since you updated summary. However, in order to exclude errors, you better include only ticket number - /tickets/1435.xml or /tickets/1435.json. Please try that and let me know if it helps

Regards,
Stanislav

Stanislav Kolotinskiy

unread,
Jan 30, 2017, 2:01:32 AM1/30/17
to Deepan Chakravarthy, Assembla API Development
Hi Deepan,

I’m really sorry for the delay. Looks like you found a bug, and I was able to reproduce it. We will take care of fixing the issue and will let you know when the fix gets into production. Sorry for the inconvenience. Have a nice day!

Regards,
Stanislav

To unsubscribe from this group and stop receiving emails from it, send an email to assembla-api-d...@googlegroups.com.
To post to this group, send email to assembla...@googlegroups.com.

Stanislav Kolotinskiy

unread,
Jan 30, 2017, 2:10:11 AM1/30/17
to Deepan Chakravarthy, Assembla API Development
Hi Deepan,

looks like I found the issue - you got a typo in your curl call. It should be -H “X-Api-Secret” rather than -u “X-Api-Secret”. Other than that, it should work correctly.

Regards,
Stanislav
Reply all
Reply to author
Forward
0 new messages