Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to create a task issue in certain board column.

Edited

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

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

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you