Forums

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

Lead attribute value from Create Shared Project API is not applied to the project

Lokesh Kolathur Jayachandran July 28, 2025

I'm using jira api to create a project using the shared project, The project is created successfully and the schemes are applied correctly. However the newly created project is using the shared project's lead id. The lead userid provided in the API is ignored.  Any help on this much appreciated.  

1 answer

0 votes
Trudy Claspill
Community Champion
August 4, 2025

Hello @Lokesh Kolathur Jayachandran 

Welcome to the Atlassian community.

Can you share with us the API endpoint you are using and the parameters/payload you are including?

Lokesh Kolathur Jayachandran August 6, 2025

Here you go  /rest/project-templates/1.0/createshared/[SharedProjectId]

and payload is 
{
key = cfg.ProjectKey,
name = cfg.ProjectName,
projectTypeKey = cfg.ProjectTypeKey,
projectTemplateKey = cfg.ProjectTemplateKey,
description = cfg.Description,
lead = leadAccountId,
assigneeType = "PROJECT_LEAD"
};

Trudy Claspill
Community Champion
August 6, 2025

Thank you for that additional information.

I see that within the endpoint you are using /1.0/ to identify the endpoint version. However in the Jira Cloud API documentation I don't see that available. I see only versions 2 and 3. 

https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-templates/#api-group-project-templates

The information I found about using v1.0 is only in references to the API usage in Jira Data Center.

https://support.atlassian.com/jira/kb/how-to-create-a-jira-project-with-shared-configuration-using-rest-api/

Can you confirm whether you are working with a Jira Cloud environment (the SaaS product), as indicated by your post tags, or with a Jira Data Center environment (the self-hosted product)?

Like Karan Sachdev likes this
Lokesh Kolathur Jayachandran August 7, 2025

We work on Jira Cloud. 

Lokesh Kolathur Jayachandran August 7, 2025

The api is working fine as expected in the Jira Cloud. however the lead account alone is taking from the Shared project and not from the APi parameter.

 

Lokesh Kolathur Jayachandran August 7, 2025

This is very important to us as we are migrating large number of projects from ADO and we need to automate the process of creating the projects. 

 

Trudy Claspill
Community Champion
August 7, 2025

Can you provide a link to documentation that describes that as a valid endpoint for the Cloud environment? If there is no documentation, then it is not supported and it may not work.

Alternately try the v2 or v3 endpoint for which I provided links, as that is official documentation and supported on the Enterprise plan (which your post tags indicate you use).

Like Karan Sachdev likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
ENTERPRISE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events