Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Sub-Tasks without parents yes Orphans

Craig Nodwell
Community Champion
February 1, 2023

I've never seen this before after almost 20 years in Jira.
This morning I had at least two teams create Sub-Tasks issue types (development/qa/ui) off of the stories in the Backlog of their Scrum Sprint Board.
About an hour later I got reports that these tickets did not get created, followed up with they are created but have no Parent Story !!
Around the same time I had another team report that a user dragged her Sub-Tasks into the Done column and selected yes to Move Story To Done as all the children were resolved.  This was done and children disappeared, leading that team to think they were deleted... they were not they were Orphaned .... Please see screenshot.

I've resolved this manually by doing a move and selecting the parent issue with no other changes.

Can anyone shed some light??


Issue Type

Screenshot 2023-02-01 134204 issuetypes.png

Orphaned Issue
Screenshot 2023-02-01 134121 no parent.png
 

2 answers

1 accepted

2 votes
Answer accepted
Florian Bonniec
Community Champion
February 1, 2023

I've already seen orphan sub-task like that but never spent time to investigate as it's quite rare.

Everytime it happen my users told me that it was during an automation rule execution when they was creating sub-task from the story creation using automation but deleting the story before it ends. It's not the steps you listed tho.

 

Usually integrity checker to fix the parent link issue then the move or delete works for me.

Craig Nodwell
Community Champion
February 1, 2023

I did lay in an automation but it doesn't touch the children.
I've since disabled it thinking it may be the root.
It's a scriptrunner listener that checks if a custom filed has been updated on the Story and does some remove link add link stuff.
Re: the custom field is a single issue scripted field for a Feature Link (issue between Epic and Story)  nothing fancy about the scripting on the field it's a simple JQL to get the Feature Issues within the project.
The listener triggers on an issue updated event, checks for the story type, checks if the Feature Link field is in the changelog.  If that all evals to true it then removes a custom link between the feature and the story and replaces it with the value found in the Feature Link.  Further to this it inspects the issue in the Feature Link grabs the Epic Link off there and populates the Story with that Link.
This was my only change prior to this Orphan thing happening.
Thoughts?
I'll share the script if you think that will help.

Florian Bonniec
Community Champion
February 1, 2023

In you script you seem to clear some link maybe you are cleaning the one that is created between sub-task and task ?

 

Even if not displayed in Issue Linking JIRA use links between those issues. Link should be Parent-Child Link.

 

Regards

Like Craig Nodwell likes this
Craig Nodwell
Community Champion
February 1, 2023

I think you just got me on the path.
Will update.

Florian Bonniec
Community Champion
February 1, 2023

Not sure about the link name but it can be found in the db using this query

 

select * from issuelinktype where pstyle is not null

 

It's one of the link listed.

 

Regards

Craig Nodwell
Community Champion
February 1, 2023

I got it you put me on the path and I thank you for that.
I've changed the logic of the remove link.

0 votes
Craig Nodwell
Community Champion
February 1, 2023

Screenshot 2023-02-01 134204 issuetypes.png

Suggest an answer

Log in or Sign up to answer