When i am trying to get all the tasks in the user story
I am getting summary of tasks but not detailed information of each task and its respective title
Would you be able to elaborate a bit more on what you are seeing or trying to do?
I am passing userstory to restapi and trying to fetch task details by passing the userstory as shown below
const queryStatement = queryUtils.where('FormattedID', '=', UserStory);
workspace: '/workspace/ workspaceid,
But this is resulting string of formatIDâ€™s and Names but not like array.
Getting data like below:
Buy parsing the above json it is tough to get task id and its respective name. because it is giving summary of tasks. Whereas FormattID and Name are strings.
But I wanted to get the every task ID and it details in JSON format.
You are using the "Summary" function, so it only provides the Summary count information as described in the Summaries section here:
You can fetch the Tasks Array Object:
And then you can fetch the Task collection which has all that information.
morky01 or corkr03,
Is there a one shot way to do this or is it grabbing the Tasks Ref for the collection and then getting the Tasks?
fetch: Tasks also not giving the all the task details. it is giving reference (_ref) to the those tasks.
when i browse that tasks reference url, i am getting the json data of tasks only in that story.
when i query the api programatically with this reference (_ref). i am getting all the tasks but not the tasks only in that userstory.
below code is returning all the tasks in that project. What changes should i do to get task present in particular user story.
Perhaps it is better to start from scratch on this question. What exactly are you trying to accomplish with your code? If you can provide your end goal, it may be easier to help.
I wanted to get list of all task and it's details in a user-story using rest api
Does this work as you expect?
const queryStatement = queryUtils.where('Workproduct.FormattedID', '=', UserStory);
Thank you Michael, it's working.
could you please provide me with some references to work with rally api.
Great, I am glad that got it.
The Web Services API documentation is great. It shows you all the Artifacts and even allows you to test queries.
You can browse GitHub for samples of apps that have been built:
Rally Technical Services Team · GitHub
Rally Software Apps · GitHub
CA Technologies (formerly Rally) · GitHub
Rally Software Tools · GitHub
Stackoverflow for questions that have been asked by others:
Newest 'rally' Questions - Stack Overflow
The Developer section of the Help Documentation:
For Developers | CA Agile Central Help
Agile Central App SDK 2.1 Docs
There are even some videos on YouTube about building apps:
Building Rally Apps - Intro & Kickstart - YouTube
Hope those help get you going.