You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I am trying to create a list of all the all the inititative where the stories have not updated.
Therefore i wrote JQL below to limit my search to the stories only that i am interested / were not updated in the last 5 days.
updated < startOfDay(-5) AND resolution = unresolved AND issuetype not in (Sub-task,Epic)
The JQL above gives the intended results & it works fine. However,
Now when i try to access all the parents of the stories given by the JQL mentioned above, it does not return a singly value. See Below :
issuefunction in portfolioparentsof(" updated < startOfDay(-5) AND resolution = unresolved AND issuetype not in (Sub-task,Epic)") & issuetype = Initiative.
Can you please advise what am i doing wrong that the result are not reflected at all. Also please correct me if there is a better way to access this info
This seems to return initiatives for me. At first I thought the ampersand (&) is the problem but no it returns the same results with AND as well.
https://yourjira.com/rest/api/2/field
Searching for 'Parent Link' you should find a json object like so
{"id":"customfield_14336","name":"Parent Link","custom":true,"orderable":true,"navigable":true,"searchable":true,"clauseNames":["cf[14336]","Parent Link"],"schema":{"type":"any","custom":"com.atlassian.jpo:jpo-custom-field-parent","customId":14336}}
Please include that object in a comment.
Can you pick one story from the results, and run this
https://yourjira.com/rest/api/2/issue/<ISSUE-KEY>?fields=updated,resolution,issuetype,customfield_14336
where the customfield_id is that of your parent link id
edit1: Also the JQL you pasted I assume was copied, yet it contains a dot in the end - could that not be it? Although it should give you a JQL search error "this issuetype doesn't exist" if that were the case.
edit2: Are those stories linked to Initiatives directly or are they linked to an Epic? If so, the portfolioParentsOf should only get the Epic, but since your jql states you only want Initiatives => 0 results; something worthwhile to check, probably this is the case
Maybe we can spot something weird in your json's perhaps, seems to work for me locally at least.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.