I'm playing around with creating a project in Service Desk via a post function with ScriptRunner. The idea is to offset some common admin tasks to non-admins by baking it into a workflow so they can cut a ticket/do the work at the same time.
Looking at similar questions here and the code examples, I'm able to leverage the copyProject class to copy an existing project just fine. The challenging bit is that we have a cascading select custom field that has a separate context per project in our environment. I'm looking for ways to consume the parent/child values in a custom field for example, and then to integrate those values into the new project.
tldr; what suggestions do you have for creating a customized project this way? Create the project first, then have some different scripts modify the Cascading select and "customized bits" after the fact?
Also -- any tips on copying the SLA rules? I see the built-in can do it. But the post-function I have does not. Any methods, etc., to include that bit would be nice.
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events