I will have a workflow that I need help understanding.
I will have issues created where there is a custom field that has 5 selectable options. These determine which teams work on the fix. What I need is for the issue to generate individual sub tasks for those selected options.
I would also need these sub-tasks to be individually assignable to different individuals (they will be set to assignable user status).
I would then want it to so that once all Sub-Tasks are completed and closed, the original master issue then closes too.
I am very new to writing scripts and such, so if I could get a detailed step by step, I would be forever in your debt. Thank you for taking the time to read this!
Let us start with closing the parent issue when the subtask is closed.
1. Go to the workflow being used by your sub-task.
2. Click on the transition you would like to run this script (to close parent task if all subtasks are closed)
3. Then select Post-functions and choose to Add a new post-function
4. Select "Script post-function" and click "Next"
5. Select "Transition parent when all sub-tasks are closed"
6. Choose the status for the parent task and a resolution.
Let me know once you get this far.
OK, well then I'll make a new one for sure. For now though, just to learn the process I'll stick to what I have. I've upvoted the answer. The only thing I need to do now is learn how to create autogenerated subtasks, depending upon which boxes in my custom field are ticked in the initial issue report.
OK, my selections in the field are language names;
I would need a sub-task per language that is ticked to be made within the issue. So if only 3 of them are ticked, only 3 sub-tasks appear etc. All values can transfer. If it's possible to have the Sub-Task name generate the original ID number of the parent issue into it's summary, then that would be even better, but it's not essential.
Is this enough info, or would you need anything else?
Most of your requirements are covered by the script runner plugin.
Take a look at it and let me know if you require additional info
Hi, I accidentally tagged it as Ondemand before, but it's not. My apologies.
I have installed the plugin, but I'm very new to this, and I'm not strong at scripts.
After I have downloaded it, what would I need to do to get these stages in place?
Thank you for your help, it is very appreciated!
So you want to create a subtask based on the multiple options selected in a multi-select field in a post-function?
What are the options on the multi-select field and what sub-tasks would you be creating? This question is already filled with comments. It will be easier if you can create a new question with more detailed information as to what you are trying to achieve.
Thanks for ur quick reply Bhushan, as you mentioned i have created a new question. Could you please help?
You might want to write your own plugin for this requirement. Heading back home now but I might have a plugin I have written that might help you get started of. Can mail you the project if you give me your email id. You can expect a response by tomorrow as I am done for the day.
Atlassian Summit is an excellent opportunity for in-person support, training, and networking.Learn more
Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in talking to 20 people planning t...
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!
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