Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×Hi,
we currently have 5 use cases, which we are seemingly not able to solve with JIRA Cloud out of the box.
Script Runner seems to be the plugin that could help us out, but as I do not know the plugin, I would like to check with you guys beforehand. We have the following 5 requirements:
Is this generally doable with script runner?
Regards
Kian
Hi @Kian Pariwar,
Hope that helps! Don't hesitate to ask if you have any more questions,
Jon
Hi Jon,
thanks for the clarification.
One more question regarding my point 4 above:
Is this also realizable with ScriptRunner?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes that's definitely possible. When creating the subtasks for each country, you can set a custom field to be the value of that country.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
just to be clear:
The sub task creation is not performed by me but by scriptrunner. ScriptRunner does not only need to auto create sub tasks when a parent task has transitioned, but it also needs to check the country custom field and create the same set of sub tasks multiple times, if several Countries have been selected. When doing so, it would be nice, if it also could prepopulate the custom country field with the country it created the sub task for (so not all 3 countries but only one of those for each auto-created sub task).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Apologies - when I said "you can set a custom field" I meant "the script that is run by ScriptRunner can set a custom field".
On the parent transition, you would have a postfunction that would read the countries out of the custom field on the parent issue, then create a subtask for each of those countries, setting the value of the custom field on that subtask to be the country the subtask was created for.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry, one more use case just came up:
6. Every Monday, a specified set of parent and sub tasks needs to be created at 8am
Does scriptrunner support this kind of autocreation based on a predefined schedule?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
At the moment we have no support for scheduled tasks in ScriptRunner for JIRA Cloud. I'll bring it up at our planning meeting later today.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.