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

Create a bug by call rest api, but the post function does not work

I create a custom field called “Bug Description” in create issue screen. I can create set the default value for bug template. And I add a post function to copy the text of “Bug Description” to “Description”. It works fine to create a bug manually.
But I try to create issue by rest api. I can create the issue successfully, but the value of Description is empty. The value of Bug Description is correct. So guess the post function does not work.

This my payload:

“update”: {

"fields": {
    "summary": "autotest3",
    "issuetype": {
        "name": "Bug"
    "project": {
        "id": "11107"
    "customfield_11278": { 
        "type": "doc",
        "version": 1,
        "content": [
                "type": "paragraph",
                "content": [
                        "text": "auto111",
                        "type": "text"
    "reporter": {
        "accountId": "60c0e116a01e11006ae66369"
    "priority": {
        "name": "Medium"
    "customfield_11261": {
        "id": "10260" 
    "customfield_11249": {
        "id": "10240" 


1 answer

Hi @梁峰 Jeff Liang (Engineering - QA TL)  do you get any error in the server response?

No, It created the bug successfully. But did not trigger the post function.  I used rest/api/3/issue.  Yesterday I tried rest/api/2/issue, it works.  Is my payload wrong ? Or is it a bug of rest api3.

Hi @梁峰 Jeff Liang (Engineering - QA TL) ok, I just tested it and it really looks like a bug. I will raise a ticket for it. But I also found a workaround.

If you use Automation, it works. I prepared automation like this:

Workspace 1_237.png

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira

⏰ Day in the life of a Jira Admin!

Hello Community! We thoroughly enjoyed this just-for-fun conversation in the Jira Admin Group about what it's like to be a Jira Admin. For #JiraJuly, our talented designers created these graphics t...

951 views 2 22
Read article

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