Forums

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

Scriptrunner to create a customized project via post function?

Bryan Karsh February 14, 2020

Hi gang,

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.

0 answers

Suggest an answer

Log in or Sign up to answer