The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hi,
The idea is: get fields from Task, and also fields from subtask of type "A" and "B" on the same row.
How can I do it?
Example
Key Task | due date Task| status subtask type A | status subtask type B
Thanks.
Hi Xavi,
Here is an example how to retrieve a string value, in this case, Sub-task status, from the first sub-task with issue type 'Sub-task A'.
Generate( Filter( [Issue].[Issue].GetmembersByKeys( [Issue].CurrentHierarchyMember.get('Sub-task keys') ), [Measures].[Issue type] = 'Sub-task A') .Item(0), Cast( [Measures].[Issue status] as String), ",")
The GetmembersByKeys function gets a set of all subtasks of an issue, a Filter filters out the ones with type 'Sub-task A'. Generate function creates a string from this Sub-task status.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Marcelo,
You were looking for a measure that checks if a parent issue is resolved within the current time period - how many of its sub-tasks of a specific type - "Block" are in a specific resolution - "Done".
You needed to keep the default hierarchy in the Issue dimension since you wanted to filter issues by parent task resolution date.
Since the sub-tasks are built within the sub-task hierarchy and their issue keys are not available as a property of the parent task - the expression needs to switch between hierarchies during the calculation.
The MDX expression for the calculated measure was as follows.
CASE WHEN [Measures].[Issues resolved]>0 THEN NonZero( Count( Filter( DescendantsSet([Issue.Sub-task].[Parent].GetMemberByKey([Issue].CurrentHierarchyMember.Key), [Issue.Sub-task].[Sub-task]), [Issue Type].[Issue Type].GetMemberNameByKey([Issue].CurrentHierarchyMember.Get('Issue type ID'))="Block" AND [Resolution].[Resolution].GetMemberNameByKey([Issue].CurrentHierarchyMember.get('Resolution ID')) = "Done") ) ) END
Regards,
Oskars / support@eazyBI.com
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi everyone, We’re always looking at how to improve Confluence and customer feedback plays an important role in making sure we're investing in the areas that will bring the most value to the most c...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.