Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Issues which changed type recently

Jan_Marcinkiewicz February 12, 2020

Hi,

 

As I am completely new to Script Runner, may I ask you for help with starting Script Runner preparation for getting all issues that changed type from one particular to another particular?

I found some examples but I stuck on pretty basic things like not matching methods such as getAllChangeItems(issue).

Could you please direct me to where to look for beginner steps or some actually working examples?

 

 

 

1 answer

2 votes
Leonard Chew
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 12, 2020

I dont think you can query your desired issues directly with the built-in JQL functions of scriptrunner, so you'll need to script something.

I know this is not the desired working example you are looking for, but still, here is an idea to achieve your goal:

  • create two custom fields: 
    1) Issue Moved Date (Date Field)
    2) Old Issuetype (Single Line Text Field)
  • Create a Script Listener that listens on the "moved issue" event.
    The listener would populate the two fields with the corresponding values (at event time).
  • Now you can query your issues on the two new fields:
    "Issue Moved Date" > -7d and "Old Issuetype"is not EMPTY

Suggest an answer

Log in or Sign up to answer