Forums

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

How to access the "Create with shared Configuration" Button throught API?

TimG1367 September 30, 2024

When I click on "Create Project" then I can either choose a template or click on "Create with shared configuration". Now my question is, how can i modify this "Create with shared configuration" button, that it shows a different dialouge than it does now, after you clicked on it. I thought of a plugin but didn't know how to access this button through an API.

2 answers

2 accepted

0 votes
Answer accepted
Bandarupalli Sai
Contributor
September 30, 2024 edited

@TimG1367  - Currently, Jira does not provide direct API support for creating projects using the "Create with Shared Configuration" option.


While you cannot directly replicate the "Create with Shared Configuration" option through the API, you can achieve a similar outcome by manually setting up the project and reusing the same schemes as another project.

  • Use the /rest/api/3/project/{projectIdOrKey} endpoint to retrieve the schemes associated with an existing project that you want to copy. This will return information about the project, including its IDs for workflow schemes, permission schemes, issue type schemes, etc.
  • Use the respective API endpoints for updating the project's configurations, use schemes ID in body. Here are the end points

    PUT /rest/api/3/project/{projectIdOrKey}/permissionscheme
    PUT /rest/api/3/project/{projectIdOrKey}/notificationscheme
    PUT /rest/api/3/project/{projectIdOrKey}/issuetypescheme
    PUT /rest/api/3/project/{projectIdOrKey}/workflowscheme
    PUT /rest/api/3/project/{projectIdOrKey}/fieldconfigurationscheme

    JSON Body

    {
    "id": "" // scheme ID from the source project
    }

    Hope this helps!
0 votes
Answer accepted
Nikola Perisic
Community Champion
September 30, 2024

Welcome @TimG1367 

There isn't a way to modify the funcionality of this button, rather using the API for it, which could be found in this article: https://community.atlassian.com/t5/Jira-articles/Jira-Cloud-Automation-Create-a-project-with-shared-settings-from/ba-p/1970419

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, atlassian community, loom ai, atlassian loom ai, loom, atlassian ai, record recaps of meetings, meeting recaps, loom recaps, share meeting recaps,

Loom’s guide to great meetings 📹

Join us to learn how your team can stay fully engaged in meetings without worrying about writing everything down. Dive into Loom's newest feature, Loom AI for meetings, which automatically takes notes and tracks action items.

Register today!
AUG Leaders

Atlassian Community Events