I'm trying to set up a Service Desk request that can create a new project in Jira.
I've written a REST API that can create projects, based on the following curl command:
curl -X POST jira-server:5000/create-project --data-raw '{"project_key": "FOO", "project_name": "My Kanban Project", "project_type": "kanban", "project_lead": "my_name"}' --header 'Content-Type: application/json'
I've created a Request Type that uses Summary and Description for the Project name and Key, and the reporter name for the project lead.
I've also created a custom radio button field called "Jira Project Type", with option values "Kanban" and "Scrum".
So my webhook looks like this....
{ "project_key": "${issue.description}",
"project_name": "${issue.summary}",
"project_type": "${???}",
"project_lead": "${issue.reporter.name}"
}But obviously "${???}" is where I'm stuck.... how do I refer to the value of my custom field?