Forums

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

PR task created from API but not showed in Bitbucket UI

Fernando Santana May 10, 2024

I'm creating a task in a Pull Request from the Bitbucket API using this method: https://developer.atlassian.com/cloud/bitbucket/rest/api-group-pullrequests/#api-repositories-workspace-repo-slug-pullrequests-pull-request-id-tasks-post. I'm getting a 201 success response, but when I go to the Bitbucket UI, I can't see the task.

What am I missing? or what could be the reason not to see the task in the UI?

Thanks!

2 answers

1 accepted

0 votes
Answer accepted
Fernando Santana May 15, 2024

Hi,
I have found the problem.

I was setting in the message's body

{

  "content": {

    "raw""Testing tasks from API"

  },

  "pending": true

}
And it should be "pending": false to appear in the UI

IMHO, the meaning of "pending" is inverted

Anyway, now it's working. ^_^
0 votes
Mark C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 13, 2024

Hi @Fernando Santana,

Welcome to the community.

May I know the status of the pull request? Is it currently Open, Rejected, or Merged?

Regards,
Mark C

Fernando Santana May 14, 2024

Hi Mark,

Thanks.

The PR is currently open.

Also, if I use the List Tasks in a PR endpoint in the API, I get the task, but it does not appear in the UI.

 

Regards,

Fernando

Fernando Santana May 15, 2024

Hi,
I have found the problem.

I was setting in the message's body

{
  "content": {
    "raw": "Testing tasks from API"
  },
  "pending": true
}
And it should be "pending": false to appear in the UI

IMHO the meaning of "pending" is inverted

Anyway, now it's working. ^_^

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
atlassian, forge, forge learning path, atlassian learning, cloud app development, forge app development, build forge apps, atlassian certification, developer training, jira app development, confluence app development, automation, ui frameworks

Turn Ideas into Atlassian Apps 📱

From setup to deployment—this learning path shows you how to build your first app using Forge. Learn the essentials, streamline workflows, and bring custom solutions to life across Jira, Confluence, and more.

Start Learning
AUG Leaders

Atlassian Community Events