Forums

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

Migration - JMCA is not migrating ScriptRunner data

Salih Tuç
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 Champions.
November 8, 2023

Hey guys,

 

I am trying to learn migration details from DC to Cloud. For that purpose, I created a simple scenario in my DC trial in my local machine which contains basic Jira projects, workflows as well as Scripted Field, Listener and Jobs that created via ScriptRunner.

 

I know the "App migration" part in migration assistant is on "Beta" but from this documentation ; I was expecting to see the custom ScriptRunner implementations in Cloud after the migration. However, even if the App migration logs shows "all data for ScriptRunner is migrated", there is no change in ScriptRunner on Cloud.

 

What should I do in this case? Am I missing something or the only thing is creating custom scripts manually?

2 answers

1 accepted

0 votes
Answer accepted
Alexey Matveev
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 Champions.
November 6, 2018

Hello,

You could use the Power Scripts add-on:

https://marketplace.atlassian.com/apps/43318/power-scripts-jira-script-automation?hosting=cloud&tab=overview

Your JQL would look like this:

key in silJQLExpression("currentDate() + originalEstimate >= due", "") 
Vinu
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 Champions.
November 6, 2018

Wow @Alexey Matveev This is a easier way!! 

0 votes
Vinu
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 Champions.
November 6, 2018

Hi @Dev K

It is not possible from to ask a JQL to do some arithmetic operations. All a JQL can do is to perform logical operations based on the data available.

Having said this, I believe if you have Adaptavist Scriptrunner installed, you can create a scripted field called estimate which calculates the estimate with your original and remaning estimates getting you the number of days left. You can then use this field in your JQL to compare if that exceeds your due date. Just got this idea from your query, but I havent tried out this yet.

The easier option of this would be to filter out issues that may be nearing the due date, save the filter and subscribe it so that you will get a mail with all the issues nearing the due date.

Hope this helps!

Suggest an answer

Log in or Sign up to answer