Unable to post Attask custom data when creating a project - post

Trying to use the Attask API to post a new issue to a project. It works without posting cutom data. This works fine:
https://ourcompany.attask-ondemand.com/attask/api/task?projectID=&&status=NEW&priority=2&name=Test%20Project%20FOOBAR&description=test&estCompletionDate=2014-03-28T09:00:00:000-0700
However, I'm unable to post custom data. The url we use:
https://ourcompany.attask-ondemand.com/attask/api/task?projectID=&&status=NEW&priority=2&name=Test%20Project%20FOOBAR&description=test&estCompletionDate=2014-03-28T09:00:00:000-0700&DE%3ACUSTOMDATAFIELD=BLAH
The error we receive is:
{"error":{"class":"com.attask.common.InvalidParameterException","message":"category cannot be null","title":null,"msgKey":"exception.attask","attributes":[""],"code":0}}
I do not understand what it is asking. The Attask API documentation is not helpful here. What am I missing in my URL?
Thank you!

You need to also set the categoryID to the category which has the custom data field.
https://ourcompany.attask-ondemand.com/attask/api/task?projectID=&&status=NEW&priority=2&name=Test%20Project%20FOOBAR&description=test&estCompletionDate=2014-03-28T09:00:00:000-0700&DE%3ACUSTOMDATAFIELD=BLAH&categoryID=XXXX
This is also assuming that you are doing a POST action.

Related

How to pass in correlation id into IHttpProvider?

I need to pass correlation Id into the IHttpProvider to let them log it for debugging purpose. How should I do that? Thanks!
We don't have a great solution for you to provide your own correlation Id today, however it something that we are working on. Requests that are made to Graph will get assigned a request id and you should be able to see that in the response headers. You could add your own using header using .Request(options).

How can I store comments for a post using Parse & Swift?

I'm honestly stumped as to how I could do this. I've been searching and trying out different methods for the past day or so and none have worked. What I'm basically trying to do is store comments for a post (Each row represents a post). I've been reading through the Parse documentation and have tried to implement some of the things that they have there into my code in order to achieve this, but that hasn't worked out either. If anybody could help me out, I'd be extremely greatful.
This exact task is the example provided in the documentation.
http://docs.parseplatform.org/ios/guide/#relational-data
You need to create a new class called "Comments" and then refrence its parent post as one of it's columns.

How can I update topic content using Discourse API?

I have tried to use PUT /t/:id to update topic content with no effect.
https://github.com/discourse/discourse_api/blob/master/lib/discourse_api/api/topics.rb
Seems there is no way to update the content using API. Am I missing anything?
You need to provide the topic slug like this: PUT /t/:slug/:id as documented here: http://docs.discourse.org/#tag/Topics%2Fpaths%2F~1t~1%7Bslug%7D~1%7Bid%7D.json%2Fput
The /t/:id endpoint only works if you issue a GET request as documented here: http://docs.discourse.org/#tag/Topics%2Fpaths%2F~1t~1%7Bid%7D.json%2Fget which I guess is not what you want.
The solution
In Discourse land, a topic it's just a bunch of posts. A topic has no
body, the first post of the topic is the body.
So, what you do is this:
GET /t/:id with your topic id
Parse the post_stream and get the first post, or whichever you need. Get the ID
PUT /posts/:id and use the ID you just got, and provide post[raw] in the body.
Please, see this discussion: https://meta.discourse.org/t/updating-topic-body-via-the-api/61220/5

how do i get multiple twitter name using API querystring?

HI,how do i get multiple twitter name using API querystring,exmaple i need to populate related with the name of 'john'.how can i do that here i have one example below
'http://search.twitter.com/search.atom?q=from%3Ajohn' by this example we can see only particular user name only but i want related name.Kindly let me know ASAP.
You can use the OR operator...
http://search.twitter.com/search.atom?q=from%3ADWRoelands+OR+from%3AJohn

MODx POST data Handling in snippet

I am new to Modx and I want to write a custom but of code in a snippet that handles incoming post data. Unfortunately I can't seem to be able to collect the post data using $_POST.
Can anyone point me in the right direction please?
Cheers
John
Also, if you do not wish to cache the results of the snippet call use [[!getPost]] rather than [[getPost]].
I've used
<?php
var_dump($_POST);
and [[getPost]]
and it worked (I got an array of 0, but I didn't send anything in post)
Vardump is a VERY bad idea.
The MODx Revolution Object is huge...
Please try:
<?php
print_r($_REQUEST);

Resources