Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Extracting all the initiatives, where the stories have not been updated/edited for the past 5 days

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

1 answer

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.


  • Are both Portfolio and ScriptRunner licensed?
  • Can you check the customfield_id of your Parent Link from

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.


  • Are the stories using 'Parent Link' to be connected with Initiatives,

Can you pick one story from the results, and run this<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.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira Service Management

Improving the Create Issue Experience in Jira Service Management Cloud

Hello everyone!  We are very excited to announce some much needed changes to the issue create experience in JSM (the blue "create" button) at the top of the screen.  We have just starte...

224 views 8 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you