I am new to JIRA API. When I create an issue in JIRA it creates that in the backlog but I want to create the issue in the Board on a certain column like "In progress". My code is below.
{
"fields": {
"summary": "New JIRA issue ",
"parent": {
"id": "10009"
},
"issuetype": {
"name": "Task",
"subtask": false
},
"project": {
"id": "10001"
},
"description": {
"type": "doc",
"version": 1,
"content": [
{
"type": "paragraph",
"content": [
{
"text": "Order entry fails when selecting supplier.",
"type": "text"
}
]
}
]
}
}
}
and URL is: https://_______.atlassian.net/rest/api/3/issue
Can you please help me? thank you & kindest regards.
You cannot do this. Status (which determines which column an issue is in on a board) is not a simple field you can just set, it's an indicator of where the issue is in the process.
A status change is actually done as part of a transition, and when you're creating an issue, the system is actually doing a "create transition", starting with a status of <null> and going to the status defined as the starting point in your workflow.
So... yes, you could have issues that are created and drop into a status that puts them in a specific column on the board. But that would mean mapping the starting status of your process into that column on the board, and it would apply for all issues (of that type), no matter how they are created, REST or UI.
What you could also do is have your REST issues create with a custom field or something that distinguishes them from the UI issues and had an Automation or Script pick up "issue created", check the flag, and then transition the issue to the status in the column you want.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.