JIRA and find parents that are closed but with open child elements - jira

I want to do some JIRA cleaning, where I want to monitor if I have closed a parent, but where it actually still have one or more open child elements. I have a JIRA project with many issue types and several possibilities to link a parent - either via the normal Epic Link, but also with Parent Link and then as a Sub-task.
What I ideally want, is to get a list of parents that are marked as Status=Done, but where it has one or more open "children" - whatever that child issueType may be.
I have tried various methods, but not with the result I want. For example I have tried this:
project="MyProject" AND issueFunction in subtasksOf("filter=1000") AND resolved is EMPTY
filter=1000 contains this:
project="MyProject" AND issuetype=Epic AND Status=Done
As far as I can see, then this kind of work, as it returns Sub-task elements that are opened, but there are multiple problems in this approach. First of all then it only returns Sub-task issue type + it triggers only on Epics + it lists the child elements and not the parents. There are also Story issues, that I know also should get triggered by this as they are opened!?
Can anyone give a hint for how this maybe could be solved? I am not sure what kind of extensions we have in place in our JIRA system.

Related

Best approach to get count of workitems state transitions?

I need to create a dashboard widget for Azure DevOps that shows number of work items of a specified type, that transitioned from one state to another.
It looks like the Updates endpoint is my best bet, but that means that I would have to iterate over all of the updates of workitems for the specified type and then determine if it contains the state transition I'm looking for, e.g. Closed to Open.
https://learn.microsoft.com/en-us/rest/api/azure/devops/wit/updates/list?view=azure-devops-server-rest-5.0
The Analytics extension looked promising, but it looks like I would need to query the Revisions dataset, and that doesn't contain the old and new values.
https://learn.microsoft.com/en-us/azure/devops/report/extend-analytics/wit-analytics?view=azure-devops
The use case is to show the number of bugs that were closed then reopened in the last 90 days. I thought that I would make the work item type and from and to states configurable.
Any ideas or suggestions much appreciated!
Best approach to get count of workitems state transitions?
At this moment, we could not query the History with State changed from one state to another state on Web UI directly.
As workaround, we could add a custom field in our custom process that gets set the value to true when workitems state change from Closed to New:
Then add a Rules to set the value of the custom field to True if the workitems state change from Closed to New:
Finally, we could query the workitems with following conditions:
BTW, if you want to get those workitems which state already changed from Closed to New before use above custom filed and rules, I am afraid you have to use Rest API to query the work items that in specified type:
https://learn.microsoft.com/en-us/rest/api/vsts/wit/wiql/query%20by%20wiql
Then loop the work items list to get all revisions for every work item with Revision - List API:
https://learn.microsoft.com/en-us/rest/api/vsts/wit/revisions/list
There is a article for TFS TFS SDK: Work Item History Visualizer using TFS API, you can check it for some more details.
Hope this helps.
You may do it through PowerBI. Calculate time-in-state for an existing Analytics view
Or as you said iterate over all of the updates of workitems.

Dart observable list that does not delete and reinsert all elements on change

We have some code that has a custom web component to display each element in an observable list. It seems that when an element is added to the list, the Web-UI infrastructure sees fit to remove all of the DOM nodes that represent elements in the list, and then re-add them along with the new element.
Not knowing much about the internal workings of the Dart-UI code, I would actually expect the addition of an element in the observable list to simply add one (or more) nodes to the DOM, without removing any of the existing nodes from the DOM.
Is it possible to achieve this sort of behavior?
There is an open issue for this: https://github.com/dart-lang/web-ui/issues/431. John wrote
fwiw, I'm working on a data-binding overhaul right now. The new
implementation includes stable lists by default.
so this should be fixed eventually.

Unpublishing used UMBRACO node causes site to crash

I'm using UMBRACO 6.0.2 and I'm seeing an issue where when I unpublish a node that's used elsewhere, UMBRACO doesn't remove the reference node and causes code to crash.
I'd rather not implement logic to handle null nodes, but would rather the actual CMS handle it more gracefully.
Anyone know if that's possible?
As fas as I know, Umbraco doesn't save references between nodes in a separate table and therefore has no standard option to see which nodes references another node.
However, there is a way to accomplish this by using a query on the database table.
Umbraco keeps the value of documenttype fields in the cmsPropertyData table in the field dataNtext and the nodeID is kept in the contentNodeId field
You could hook into the Document.AfterUnPublish() or Document.BeforeUnPublish() event and run a query on the cmsPropertyData table to check if there are dataNtext fields which contain the nodeId you have just unpublished. If so, you also need to unpublish the Document with the nodeID from the contentNodeId field.
This solution is not a clean one but it could work. The tricky part is to determine if the node hasn't already been handled/unpublished in your event, otherwise you might create infinite loops ;)

TFS 2010 query to conditionally show child Tasks for some Work Item Types but not others

I'm using the TFS 2010 query editor. I am trying to write a Tree of Work Items query to show all User Stories and Bugs.
I'd like to be able to include all child Tasks related to the Bugs, but not show child Tasks of User Stories. Is this even possible with TFS? If so, how?
I'm afaraid you cannot specify the condition on Work Item Type of parent work item for linked work items.
Unless you have your own field in work items where you save the parent work item type of course. Then you could use this field for filtration.

ASP.NET MVC - Parent-Child Table Relation - how to creat Children in MVC (example request)

In a standard setup of Parent Child relation, lets say Project and Task. Where a Project is made up of lots of Tasks. So in a standard RDB, we have a
Project (ID, Name, Deadline)
Task (ID, FK_To_Project, Name, Description, isCompleted)
this is all very straight forward.
We have an MVC View that views Projects, so we get a nice list of all the project Names next to each deadline.
Now we want to CREATE a new PROJECT.
The Edit view opens, we type a name, say, 'Make a cup of Tea', with tomorrow as the deadline!
Still in this view/web page, I would like a list of all the Child Tasks, in a standard list, with Edit, Delete, and a Create/Add Task button too, just below the 'parent table' details.
The simplest way to describe this, is the Parents Table Create/Edit view, with the Childes List View Below it.
The ideal solution will also allow my Child Table (Tasks) to have Children also (for more complex scenarios) , and so on, and on, and on.
If I navigate away from my Created Project, I don’t want all sorts of random stuff laying around, they went away, it’s gone!
I’d expect all the same functionality when Editing an existing project.
I’m struggling with the ‘Add New Child’, I had a model dialog (jQuery) and all was well, but now when editing an existing child/task, I need to populate the Child Edit, which is a pain and will need loads of java script I think.
How can this be achieved in MVC, does anybody have any examples?
I know this is a very late reply, but I've posted a screenshot of my first MVC project which seems to deal with exactly the same Parent - Child relationship and presentation style that you are describing. See if the is what you are shooting for.
Screenshot: http://mattslay.com/wp-content/uploads/2018/07/mvc-crud-app.png

Resources