Forums

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

Copying project from Post Function

Cary Watkins August 9, 2019

I am utilizing a request process in Jira Service Desk to generate new projects. Once the ticket is created, I would like to have a post function create the new project. I am thinking I can do this through post function or via the Automation App. Below are the steps I am trying to achieve. 

  • Transition post function/trigger
  • Upon transition, trigger script to Copy template project (ex. Project 1: Key "PRJ")
  • Use Issue Key of trigger request (minus the '-') as the new Project Key
  • Use the Summary of trigger request as Project Name. 

I am not sure if this is possible as this point but there is a clear need to allow project copies without giving the user admin rights. 

 

Please help get me pointed in the right direction...

1 answer

0 votes
Yury Lubanets
Contributor
August 12, 2019

Hi @Cary Watkins 

I think it's possible using a post function with a custom script. From ComponentAccessor class you can retrieve the ProjectManager object which contains createProject method. One of the parameters of that method is ProjectCreationData. You can build it using a nested class ProjectCreationData.Builder which allows to do it from the existing project.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events