I'm trying to import data from jira issues from multiple projects (via the rest api). In doing so I would like to keep track of what I've just imported. My naive attempt at this was to order the results "id" desc and on each run select the smallest id then run a query for id less than that value. However, id is resolved to a ticket key before sorting so only tickets in the same project as that id are returned. Here's a simple repro for this issue:

  1. Pick two issues from different projects, say PROJA-1 and PROJB-1
  2. Find their ids, say for these we have PROJA-1 has id 23000 and PROJB-1 has id 32000
  3. Try the jql: "key in (PROJA-1,PROJB-1)"
    • RESULT: Correctly returns both issues
  4. Try the jql: "key in (PROJA-1,PROJB-1) and id<=32000"
    • EXPECTED: Returns BOTH tickets since their ids are both less than this numerical value
    • ACTUAL: Returns ONLY PROJB-1 since the id is resolved to this key first.

3 answers

1 accepted

This widget could not be displayed.

Ok I'm working around this by iterating through the projects, but there does seem to be a difference in behavior here either between versions 5.0.7 -> 5.1.4 or between instances.

This widget could not be displayed.

Works fine for me! Returns both the issues.

What version of Jira are you on please? I'm on v5.0.7#734-sha1:8ad78a6.

tried on 5.1.4.

This widget could not be displayed.
Could the bahavior (schema perhaps) have changed between 5.0.7 and 5.1.4? A bug fix or ER fulfillment maybe?

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

269 views 5 0
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you