Forums

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

How to create a task issue in certain board column.

javmah December 26, 2021

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.

 

 

 

 

 

1 answer

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 26, 2021

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.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
AUG Leaders

Atlassian Community Events