Hi everyone,
When using the childIssueOf() in ScriptRunner on a Story Key, I can get all the Story Sub-tasks as shown below:
It would stand to logic using parentIssuesOf() on any of the resulting Sub-task Keys that I should get the parent Story (295) and subsequent parent Epics etc.
My question - what am I doing wrong and how should I modify my query so that this:
...will return the Story (295) and its subsequent parents?
Thanks in advance!
EDIT:
Using the Sub-task Key 296 does not yield anything, but using the Key 299 does for some reason result in what I need (namely the Story, Epic and Initiative), which is damn weird and inconsistent to say the least:
Opening the both Sub-tasks side by side shows that they are exactly the same and have the same parent Story, with the exception that the key that works has a Label while the ones that do not yield anything do not have a label.
Hi @Cedacri ,
If the same function is working for one sub-task (299) and not working for other (296), then it seems we need to focus on 296 one, instead of the ScriptRunner.
Let's put ScriptRunner aside and go to the "Issue Search" and run the same query, can you get the results? There may be some of these problems in the context of the sub-task 296:
Can you please check them first and then if the problem exists please let us know with the details of sub-task 296 so we can help better :)
Hi @Salih Tuç ,
Thank you for taking your time to help me troubleshoot this!
Yes, I have the exact same behavior in the "Issue Search" as in ScriptRunner
1. I am the user running the queries, and have double checked and can confirm that I have access to the sub-tasks 296-300
2. I can access all the sub-tasks and the parent issue. Also, there's no Issue security and ScriptRunner should have bypassed it if present.
3. Integrity is OK, Workflow transitions are present
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.