Using the issuehistory() fucntion with EpicLink

Hi all,

I'm hoping you can help me out here - I'm having some difficulty getting my head around using the issuehistory() function with the EpicLink field (apparently it's supported).

 

Let me give you the scenario first. I've moved a load of tickets out of one project in to a new one as using components in the project was getting really confusing for the PO and the team. Int the process of moving the tickets I forgot they would no longer be assigned to an Epic, which is fair enough.

What I'm trying to achieve is to query which tickets use to belong to specific epics (the data I can see in the History of the ticket) so I can bulk edit these issue and assign them to the correct epic in the new project.

 

I can't work out what the JQL should be in order to us the issuehistory() function and I was hoping someone maybe able to help me out.

1 answer

1 accepted

1 vote

The issueHistory function just shows issues the current user has recently looked at, and will only show a maximum of 30 issues. It's not what you want.

You would need the WAS operator but it's not supported for links AFAIK.

I think you will need to write some kind of script that parses the history items using the REST interface... it's easier in the hosted version, although not much. If it's not too late maybe you could get a restore done.

Ahhhh right, not to worry then - a slight pain but I can do it manually in the time it would take me to work out how to write the query against the REST API.

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Feb 15, 2018 in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

1,208 views 6 19
Read article

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot