Rally Software

  • 1.  Integrating Task View app with Custom Fields

    Posted Feb 13, 2018 11:07 AM

    Hi, our team has recently switched to Kanban and I'm trying to reconfigure my dashboard accordingly. So far, I have 2 Kanban board apps that display the cards in my states of interest. This is controlled by only showing the columns that are in relation to me.

     

    I'm trying to setup the Task view app, so I can see the tasks that are in the Stories in the above boards. However, the only field I can report off of is a custom field in the Stories that we use called "Kanban State". Is there any way to include this custom field in my query and ONLY show me tasks that roll up to a story with the Kanban State = Testing? I have tried using "c_Kanban State" and "Kanban State" but each returns an error. 



  • 2.  Re: Integrating Task View app with Custom Fields

    Posted Feb 13, 2018 02:49 PM

    If you're trying to filter to Tasks whose parent stories are in a particular Kanban state and your custom field name is Kanban State then the query would be:

     

    (WorkProduct.KanbanState = "your custom state name")

     

    The reason for this is that Kanban State isn't an attribute of the task but rather an attribute of its parent, and the API name for the parent of a task is Work Product. If you haven't used it before then the Web Services API documentation is invaluable for this sort of stuff. Hope that helps.



  • 3.  Re: Integrating Task View app with Custom Fields

    Posted Feb 14, 2018 08:56 AM

    EricNash, thank you for your help. I have tried the above statement, but I am given the following error : 

    Could not parse: Attribute "KanbanState" on type SchedulableArtifact is not allowed in query expressions.



  • 4.  Re: Integrating Task View app with Custom Fields

    Posted Feb 14, 2018 11:00 AM

    That'll teach me to test things before I answer! I see the problem but I'm not sure how to work around it. I'll think about it and post again if I can figure out a solution.



  • 5.  Re: Integrating Task View app with Custom Fields

    Posted Feb 14, 2018 11:29 AM

    I'm not certain i'm grasping this scenario exactly, but I suggest you try this:


    (WorkProduct.c_KanbanState.DropDownField contains "Testing")



  • 6.  Re: Integrating Task View app with Custom Fields

    Posted Feb 16, 2018 06:07 PM

    Michael, the problem there is the same one that I ran into. The custom field only exists on the HierarchicalRequirement and Defect objects, not on WorkProduct, which is a direct child of SchedulableArtifact. I'm pretty well stumped on this one (sorry ross.m.richey).



  • 7.  Re: Integrating Task View app with Custom Fields
    Best Answer

    Broadcom Employee
    Posted Apr 26, 2018 01:20 PM

    Hi Ross,

     

    It's been a long while with activity on this thread, perhaps it's been resolved. You can not use the Workproduct field which is on the Task artifact because it inherits from SchedulableArtifact . Your custom field is on the user story which is HierarchicalRequirement. So, when instantiating a SchedulableArtifact this field isn't there. I think it was already covered by Eric and Michael.

     

    Because of that you will not be able to use an app to display Tasks with this kind of query.

     

    However, you can use an app such as Custom Board and set it up for User Story (then this field is included and can be filtered). You can use the apps settings -> Query field to filter not only by your custom field but also by the tasks conditions that meet your need. This way you'll end up having a board of stories (not of tasks) but it will only filter the stories that have the tasks you need, in addition you can add the tasks to the displayed story.

     

    Here is an example of a query that may come close to what you need. This query will display the stories that meet your custom field's required value which do have tasks and only these tasks which are not marked 'Ready'. Similarly , you can tweak this query to filter the tasks that have you as an owner or other similar conditions you need to include on the task:

     

    (((<your custom user story field> contains/equal <your value>) and (Tasks.ObjectID != null)) and (Tasks.Ready = false))

     

    I hope this helps. 

     

    Sagi