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.
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?
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"
};
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
The information I found about using v1.0 is only in references to the API usage in Jira Data Center.
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)?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.