Posts

Showing posts with the label Jira

Fix: Create project in Jira using Rest API

 To create a project in Jira using the Jira REST API, you can use the `POST` method to send a request to the Jira server. Here's a basic example of how to create a project: **Note**: You will need administrative privileges or appropriate permissions to create a project in Jira via the REST API. Below is a cURL example, which is a command-line tool for making HTTP requests. You can adapt this to your programming language of choice, using HTTP libraries like `requests` in Python or `HttpClient` in .NET. ```bash curl -D- -u your_username:your_password -X POST -H "Content-Type: application/json" \   --data '{     "key": "PROJECTKEY",     "name": "Project Name",     "projectTypeKey": "business",     "projectTemplateKey": "com.atlassian.jira-core-project-templates:jira-core-project-management",     "lead": "project_lead_username"   }' \   https://your-jira-instance/rest/a