Creating Asana Project using API leaves name and notes blank - asana

I working on a VB.NET program to that will create an ASANA project using the API. I am able to create a project but the name and notes for the project are blank.
Here is my url:
https://app.asana.com/api/1.0/teams/22956925957833/projects
Here is the json I am passing:
{"data":[{"name":"Randy Test Project","notes":"Randy Test Project Notes"}]}
Here is the json response back:
{"data":{"id":23081257887338,"created_at":"2014-12-29T22:36:43.891Z","modified_at":"2014-12-29T22:36:43.891Z","public":true,"name":"","notes":"","archived":false,"workspace":{"id":5272875888767,"name":"summitmarketing.com"},"members":[{"id":11674220097573,"name":"Randy Gress"}],"followers":[{"id":11674220097573,"name":"Randy Gress"}],"color":null,"team":{"id":22956925957833,"name":"Test Team For Randy"}}}

Your data field is an array containing a single hash. It should just be a hash.

Related

Using taken displayName to create a gallery app

I am using the Instantiate Application Template API to create a gallery app:
The body requires the following JSON:
{ displayName: 'customNameOfGalleryApp' }
If the displayName is already used, there is no indication in the response. We get a 201 (successfully created) status and unique IDs associated with the displayName.
Is there a way to NOT create a gallery app and issue an error if the displayName is already utilized?
The best solution I can suggest at this stage is to check if an Application Template with that name already exists.
GET /applicationTemplates?$filter=displayName eq '{appDisplayName}'
Then fail the attempt in your client code.

How can I deep link to a Glip team?

I would like to deep link to a Glip team and previously used the URL format used by the Glipped project, however it no longer works. Instead of taking me to the chat specified by the chatId, I would get navigated to the latest open chat I have. Is this a bug or is there a new URL for this?
Format: https://app.glip.com/r/chat/{chatId}
Project: https://github.com/ringcentral/Glipped
Update: The Glipped project has now been updated with the link format in the answer below: https://github.com/ringcentral/Glipped/pull/5
Instead of using the path parameter, use the query string parameter as follows. Here, groupId is the same as the chatId in the question above.
https://app.glip.com/chat/r?groupid={groupId}

Retrieving More columns as Part of VSTS query

I'm trying to fetch details from VSTS using VSTS query API. So to get all Portfolio Epics I created a custom query and used its ID to get that in JSON format. the query looks like this
https://dev.azure.com/{organization}/{project}/{team}/_apis/wit/wiql/{id}?api-version=5.0-preview.2
But the issue is its not giving me many details about each of the work items in JSON. It only lists the ID and URL. Like this
WorkItems:[
{ID:234,URL:"workitemurl"},
{ID:235,URL:"workitemurl"},
{ID:236,URL:"workitemurl"},
...
]
So if I need more details about an item I need to execute those individual URl for each PE and thus I can get its details. instead of I am just checking is there is any way of getting an ID (keyedinID of each work item along with the ID and URL) like this. Please note KID is a field if we execute the URL separately. So to avoid that extra process, I would like to get that along with the WorkItems.
WorkItems:[
{ID:234,URL:"workitemurl",KID:002},
{ID:235,URL:"workitemurl",KID:023},
{ID:236,URL:"workitemurl",KID:033},
...
]
So how can we make this possible?
The Web UI uses a different API to get query results (/_api/_wit/_query), which allows query+data in a single pass. This is an old __v5 type call, which means it's considered internal.
The proper way to do this now is to first do the query as you're doing it right now and then call /_api/wit/workitems?ids=1,2,3,4 using the IDs from the references you got from the first call. That will also allow you to load the details dynamically and in small batches which will result in a more responsive UI.
See:
https://learn.microsoft.com/en-us/rest/api/azure/devops/wit/work%20items/list?view=azure-devops-rest-4.1

How to connect Jira Cloud data to a web-app

I have a node.js web-app added to jira as user-installed app.
My app has some simple data:
{name: process_1},
{name: process_2},
{name: process_3}
What I need to do is:
Add a custom field named "tl_process" to the New Issue jira form
Have tl_process field list all the data from my app, eg: "process_1", "process_2", "process_3" as selectable values
2.1 Important note: these values should be supplied to jira by my webapp
When a user creates new jira issue with tl_process value process_2 for example - my webapp should receive a notification about it. Then I will set my data to:
{name: process_1, active: true}
What would be the best course of action to follow here?
Add a custom field named "tl_process" to the New Issue jira form
If you want the field to be seen in the issue view, you might want to consider using the Issue Field module. If you really want a custom field, check the REST API here.
Have tl_process field list all the data from my app, eg: "process_1", "process_2", "process_3" as selectable values
If you go the Issue Field route, you can also add values by using Create issue field option REST API.
When a user creates new jira issue with tl_process value process_2 for example - my webapp should receive a notification about it. Then I will set my data to:
For this, you need to create an endpoint on your app and trigger a webhook to call your app.

Fusion charts free on Ruby on Rails

Hi i am using Fusion charts free with Rail 2.3.5
I tried to simulate the single_array example provided in the documentation but instead of graph it is showing me the following message
The method used is setDataXML.The XML is
#Creates xml with values for sales data of products #along with their names.
#The values required for building the xml is obtained as parameter arr_data
#It expects an array in which each element is
#itself an array with first element as label and second element as value
xml = Builder::XmlMarkup.new xml.graph(:caption=>'Sales by Product', :numberPrefix=>'$', :formatNumberScale=>'0',:decimalPrecision=>'0') do
for item in arr_data xml.set(:name=>item[0], :value=>item[1],:color=>''+get_FC_color)
end
end
Anybody seen this message before >? i am using Firefox with flash player > 9
"The method used is setDataXML.The XML is" is a log message from FusionCharts RoR.
After this, it should print the xml.
Looks like your xml is incorrect. Please remove the comments from the builder file and see if it works.
Please see a sample application posted at FusionCharts in RoR 2.3.5

Resources