To no surprise, all of our scripted field scripts are broken in our test migration to the cloud.
I tried to use chatgpt etc to guide me into code fixes (I am not a developer) and can't seem to get anything to work.
Original code working in server:
My pain your gain.
My team was able to figure it out
I’m Charlotte, a support engineer at Appfire and I’m here to suggest an alternative.
If you don’t want to have to modify all the scripts, or to spend you Jira automation limit on this, and have an app like Jira Misc Workflow Extensions (JMWE) installed, you can use the feature called Event-based Actions to build this automation in a more user friendly way.
For example, in this feature you can create an automation that will copy any field value you want from the parent to the subtasks.
In your case, I recommend using the Copy issue field post function:
Then, you just need to configure it to use the parent issue as source, the current issue as destination, and select all the field you want to be copied from one to the other as soon as a subtask is created:
Please contact our support if you have any other questions about this feature, or JMWE in general.
We’ll be happy to help you! 😉
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Duane Cronkite
I am not an expert at scripting (for Scriptrunner), but I wanted to point out resources provided by Adaptavist in case you missed them.
Rewriting Scripts for Cloud Hints and Tips
Help from the community it free, of course, but if you have a lot of scripts that need rewriting you could also look at engaging Adaptavist or an Atlassian Solution Partner to help with rewriting scripts. (Disclosure: I work for Praecipio, and we are an Atlassian Platinum Solution Partner.)
You may also find that there are alternate solutions to scripting, such as using Automation Rules instead. Of course, there is not full overlap in functionality, but you may find some overlap that is useful. For example, in the above case you could create a normal custom field and use an Automation rule to copy data to it from the subtask's parent.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.