# \#python

**URL:** https://community.developer.atlassian.com/tag/python/56.md

[Latest](https://community.developer.atlassian.com/latest.md) · [Categories](https://community.developer.atlassian.com/categories.md) · [Tags](https://community.developer.atlassian.com/tags.md)

---

## [How to set compact density of page in confluence cloud using REST API](https://community.developer.atlassian.com/t/how-to-set-compact-density-of-page-in-confluence-cloud-using-rest-api/97631)

<div class="topic-metadata">

**Author:** [@ZhichaoWei](https://community.developer.atlassian.com/u/ZhichaoWei)\
**Replies:** 1\
**Last updated:** [December 10, 2025, 11:04am UTC](https://community.developer.atlassian.com/t/how-to-set-compact-density-of-page-in-confluence-cloud-using-rest-api/97631 "2025-12-10T11:04:46Z")

</div>

I know how to create a page through REST API and set its property like content-appearance-draft → full-width content-appearance-published → full-width using two Create page property calls. Now I need to use compact d…

---

## [Unable to add user to project role](https://community.developer.atlassian.com/t/unable-to-add-user-to-project-role/95426)

<div class="topic-metadata">

**Author:** [@derek.fields](https://community.developer.atlassian.com/u/derek.fields)\
**Replies:** 1\
**Last updated:** [September 17, 2025, 10:49pm UTC](https://community.developer.atlassian.com/t/unable-to-add-user-to-project-role/95426 "2025-09-17T22:49:37Z")

</div>

I am trying to add a user to a project through the REST API and getting a very strange result. Using Postman to test, here is what I see (headers are removed): curl --location 'https://xxxxx.atlassian.net/rest/api/3/pro…

---

## [Cannot create issues using Jira Cloud REST API](https://community.developer.atlassian.com/t/cannot-create-issues-using-jira-cloud-rest-api/93456)

<div class="topic-metadata">

**Author:** [@MohanDarabil](https://community.developer.atlassian.com/u/MohanDarabil)\
**Replies:** 0\
**Last updated:** [July 1, 2025, 7:12am UTC](https://community.developer.atlassian.com/t/cannot-create-issues-using-jira-cloud-rest-api/93456 "2025-07-01T07:12:28Z")

</div>

I’m trying to automate Jira issue creation using the Jira Cloud REST API (/rest/api/3/issue) with a Python script and my API token, but I’m consistently getting a 401 Unauthorized error with the message ‘You do not have …

---

## [Page Restrictions via the v2 API](https://community.developer.atlassian.com/t/page-restrictions-via-the-v2-api/93094)

<div class="topic-metadata">

**Author:** [@aaronstarr](https://community.developer.atlassian.com/u/aaronstarr)\
**Replies:** 1\
**Last updated:** [June 17, 2025, 5:16pm UTC](https://community.developer.atlassian.com/t/page-restrictions-via-the-v2-api/93094 "2025-06-17T17:16:51Z")

</div>

Hello, Is there a way to get the restrictions applied to a page in Confluence via the v2 API? I can get it via v1 with the following: page\_id = "1234567890" url = f"https://COMPANYURL/wiki/rest/api/content/{page\_id}/…

---

## [Failure to @mention user with recent email address change](https://community.developer.atlassian.com/t/failure-to-mention-user-with-recent-email-address-change/90755)

<div class="topic-metadata">

**Author:** [@MathewLederman](https://community.developer.atlassian.com/u/MathewLederman)\
**Replies:** 1\
**Last updated:** [March 28, 2025, 5:15pm UTC](https://community.developer.atlassian.com/t/failure-to-mention-user-with-recent-email-address-change/90755 "2025-03-28T17:15:06Z")

</div>

Passing the below via 6. API Documentation - jira 3.9.4.dev1+g3a630c5 documentation through the Jira API fails to properly mention testuser@company2 who’s email address recently changed from testuser@company1 to testuser…

---

## [Updating a Table in a confluence page using Rest API call](https://community.developer.atlassian.com/t/updating-a-table-in-a-confluence-page-using-rest-api-call/38946)

<div class="topic-metadata">

**Author:** [@KaushikRoy](https://community.developer.atlassian.com/u/KaushikRoy)\
**Replies:** 8\
**Last updated:** [March 18, 2025, 9:46pm UTC](https://community.developer.atlassian.com/t/updating-a-table-in-a-confluence-page-using-rest-api-call/38946 "2025-03-18T21:46:05Z")

</div>

Hi All, Can anyone please provide me any document where it is shown how to use postman to query using rest API call to confluence page to get a table content and also update the table with a new row appended? I need to…

---

## [Api call for filter](https://community.developer.atlassian.com/t/api-call-for-filter/89974)

<div class="topic-metadata">

**Author:** [@RobertDineen](https://community.developer.atlassian.com/u/RobertDineen)\
**Replies:** 2\
**Last updated:** [March 10, 2025, 10:46am UTC](https://community.developer.atlassian.com/t/api-call-for-filter/89974 "2025-03-10T10:46:55Z")

</div>

I have having a go at my first api call for a specific filter. the url is fine when i open json via explorer, so no issue there. i have the following error. \[WinError 10013\] An attempt was made to access a socket in a…

---

## [Trying to write a custom code to fetch the knowledge base articles from our JSM](https://community.developer.atlassian.com/t/trying-to-write-a-custom-code-to-fetch-the-knowledge-base-articles-from-our-jsm/73539)

<div class="topic-metadata">

**Author:** [@kompalsithta](https://community.developer.atlassian.com/u/kompalsithta)\
**Replies:** 6\
**Last updated:** [December 18, 2024, 6:09pm UTC](https://community.developer.atlassian.com/t/trying-to-write-a-custom-code-to-fetch-the-knowledge-base-articles-from-our-jsm/73539 "2024-12-18T18:09:39Z")

</div>

Trrying to write a custom code to fetch the knowledge base articles from our JSM . We tried using details at https://developer.atlassian.com/cloud/jira/service-desk/rest/api-group-knowledgebase/#api-rest-servicedeskapi-k…

---

## [How to list all PR where a specific person is a reviewer?](https://community.developer.atlassian.com/t/how-to-list-all-pr-where-a-specific-person-is-a-reviewer/82774)

<div class="topic-metadata">

**Author:** [@Mjo](https://community.developer.atlassian.com/u/Mjo)\
**Replies:** 2\
**Last updated:** [December 16, 2024, 5:08am UTC](https://community.developer.atlassian.com/t/how-to-list-all-pr-where-a-specific-person-is-a-reviewer/82774 "2024-12-16T05:08:24Z")

</div>

Hi, I am trying to build a dashboard where I wanted to list all PR’s where a specific user is a reviewer. I tried to had a look on internet and found few things they required project and repo\_slugs to fetch the PR. I w…

---

## [Setting the approver dynamically](https://community.developer.atlassian.com/t/setting-the-approver-dynamically/86653)

<div class="topic-metadata">

**Author:** [@evandrolippert](https://community.developer.atlassian.com/u/evandrolippert)\
**Replies:** 1\
**Last updated:** [November 27, 2024, 3:51am UTC](https://community.developer.atlassian.com/t/setting-the-approver-dynamically/86653 "2024-11-27T03:51:09Z")

</div>

I am creating a workflow to verify if a user can create an issue for a specific table. To determine this, we would use the API to check the issue and its related table, and dynamically set an approver to control whether …

---

## [Get table data from Confluence page with 'Page Properties Report' macro - Python](https://community.developer.atlassian.com/t/get-table-data-from-confluence-page-with-page-properties-report-macro-python/74521)

<div class="topic-metadata">

**Author:** [@TomLarsen](https://community.developer.atlassian.com/u/TomLarsen)\
**Replies:** 4\
**Last updated:** [October 8, 2024, 5:51am UTC](https://community.developer.atlassian.com/t/get-table-data-from-confluence-page-with-page-properties-report-macro-python/74521 "2024-10-08T05:51:16Z")

</div>

Hi I am trying to get table data from a Confluence cloud page to Python. The table on the page is generated by a ‘Page Properties Report’ macro. I have tried using the Python code below. However, the received HTML code…

---

## [Can't get dashboard gadget's filtername or filterid with rest api](https://community.developer.atlassian.com/t/cant-get-dashboard-gadgets-filtername-or-filterid-with-rest-api/85043)

<div class="topic-metadata">

**Author:** [@JaydenZhang](https://community.developer.atlassian.com/u/JaydenZhang)\
**Replies:** 5\
**Last updated:** [October 8, 2024, 2:44am UTC](https://community.developer.atlassian.com/t/cant-get-dashboard-gadgets-filtername-or-filterid-with-rest-api/85043 "2024-10-08T02:44:57Z")

</div>

I have a Bubble Chart gadget in a dashboard, I am using the following rest api call to get the filtername or filterid, but failed: url = f"{base\_url}/rest/api/3/dashboard/{self.dashboard\_id}/items/{gadget\_id}/properties…

---

## [Help Needed with Confluence Cloud Page Restriction Script](https://community.developer.atlassian.com/t/help-needed-with-confluence-cloud-page-restriction-script/83136)

<div class="topic-metadata">

**Author:** [@MaurizioBattiston](https://community.developer.atlassian.com/u/MaurizioBattiston)\
**Replies:** 7\
**Last updated:** [September 4, 2024, 11:21am UTC](https://community.developer.atlassian.com/t/help-needed-with-confluence-cloud-page-restriction-script/83136 "2024-09-04T11:21:01Z")

</div>

Hi everyone, I’m trying to set restrictions on a Confluence Cloud page for a specific user using a Python script. However, I keep encountering an error that I can’t seem to resolve. Here’s the error message I receive: …

---

## [REST API call to add a comment on issue returns 200 instead of 201](https://community.developer.atlassian.com/t/rest-api-call-to-add-a-comment-on-issue-returns-200-instead-of-201/1742)

<div class="topic-metadata">

**Author:** [@kaushikveluru](https://community.developer.atlassian.com/u/kaushikveluru)\
**Replies:** 14\
**Last updated:** [September 3, 2024, 12:31pm UTC](https://community.developer.atlassian.com/t/rest-api-call-to-add-a-comment-on-issue-returns-200-instead-of-201/1742 "2024-09-03T12:31:47Z")

</div>

Hi, I am building a REST API client in Python for JIRA. I am trying to add a comment on an issue using an API call. According to the documentation, the response from the API call would be 201 if the comment is added …

---

## [Issue with Displaying React Frontend in Jira Plugin](https://community.developer.atlassian.com/t/issue-with-displaying-react-frontend-in-jira-plugin/81956)

<div class="topic-metadata">

**Author:** [@4sker](https://community.developer.atlassian.com/u/4sker)\
**Replies:** 4\
**Last updated:** [July 22, 2024, 9:26am UTC](https://community.developer.atlassian.com/t/issue-with-displaying-react-frontend-in-jira-plugin/81956 "2024-07-22T09:26:39Z")

</div>

Hello everyone! I encountered a problem while developing an Atlassian Connect App. I created a simple backend application in Python that outputs HelloWorld.html using Flask, and everything worked fine when I ran it thro…

---

## [How to solve "Unauthorized; scope does not match"?](https://community.developer.atlassian.com/t/how-to-solve-unauthorized-scope-does-not-match/81389)

<div class="topic-metadata">

**Author:** [@KnowCodeCompany](https://community.developer.atlassian.com/u/KnowCodeCompany)\
**Replies:** 2\
**Last updated:** [June 28, 2024, 6:09pm UTC](https://community.developer.atlassian.com/t/how-to-solve-unauthorized-scope-does-not-match/81389 "2024-06-28T18:09:49Z")

</div>

Hello, I’m developing a Slack Bot and it uses an Jira OAuth App to login in to the user jira account. Here is a snippet of my code (python): @app.route('/login', methods=\['POST'\]) def login(): data = request.form …

---

## [Jira APIs inconsistent responses in Python and React](https://community.developer.atlassian.com/t/jira-apis-inconsistent-responses-in-python-and-react/80901)

<div class="topic-metadata">

**Author:** [@ChienVu](https://community.developer.atlassian.com/u/ChienVu)\
**Replies:** 0\
**Last updated:** [June 17, 2024, 1:02am UTC](https://community.developer.atlassian.com/t/jira-apis-inconsistent-responses-in-python-and-react/80901 "2024-06-17T01:02:45Z")

</div>

Hi all, I encountered some issues with JIRA API request in my current project. Mainly api.atlassian.com/ex/jira doesn’t have a consistent response. These are the testing tools that I used. OS: ubuntu 22.04 Python (3.…

---

## [How do I set properties on an organization?](https://community.developer.atlassian.com/t/how-do-i-set-properties-on-an-organization/73725)

<div class="topic-metadata">

**Author:** [@nicolelilianabassi](https://community.developer.atlassian.com/u/nicolelilianabassi)\
**Replies:** 2\
**Last updated:** [May 8, 2024, 7:56am UTC](https://community.developer.atlassian.com/t/how-do-i-set-properties-on-an-organization/73725 "2024-05-08T07:56:38Z")

</div>

Hi, I created an organization using APIs and wanted to set up some properties that I previously created with the web interface. PUT API returns 201 as code, but through the jira service management UI if I enter the org…

---

## [Search\_users() in JIRA python API not working](https://community.developer.atlassian.com/t/search-users-in-jira-python-api-not-working/37369)

<div class="topic-metadata">

**Author:** [@informationsystem](https://community.developer.atlassian.com/u/informationsystem)\
**Replies:** 1\
**Last updated:** [May 7, 2024, 3:58am UTC](https://community.developer.atlassian.com/t/search-users-in-jira-python-api-not-working/37369 "2024-05-07T03:58:23Z")

</div>

Hey, So we have been using the JIRA python package, which provides for a function ‘search\_users()’ inside a class JIRA. The first parameter of this function is ‘user’ which we used to pass as a null string ‘’, and this …

---

## [How to call a python file (.py) in a forge app](https://community.developer.atlassian.com/t/how-to-call-a-python-file-py-in-a-forge-app/79510)

<div class="topic-metadata">

**Author:** [@SumitSuman](https://community.developer.atlassian.com/u/SumitSuman)\
**Replies:** 2\
**Last updated:** [May 2, 2024, 12:30pm UTC](https://community.developer.atlassian.com/t/how-to-call-a-python-file-py-in-a-forge-app/79510 "2024-05-02T12:30:31Z")

</div>

I want to use my model written in Python to classify the issues and use Forge Cloud to display the result. But as far as I know, forge doesn’t support Python so I was wondering how can I integrate my Python code with the…

---

## [Is there a difference between server-based and cloud-based Confluence REST API?](https://community.developer.atlassian.com/t/is-there-a-difference-between-server-based-and-cloud-based-confluence-rest-api/78183)

<div class="topic-metadata">

**Author:** [@gergelyignacz](https://community.developer.atlassian.com/u/gergelyignacz)\
**Replies:** 3\
**Last updated:** [March 11, 2024, 6:07pm UTC](https://community.developer.atlassian.com/t/is-there-a-difference-between-server-based-and-cloud-based-confluence-rest-api/78183 "2024-03-11T18:07:19Z")

</div>

Dear Community, an absolute newbie here. I would like to make some basic accesses with python API (https://atlassian-python-api.readthedocs.io/) on a cloud-based and on a server-based Confluence. As far as I know this …

---

## [Notify assignee/reporter when running python script](https://community.developer.atlassian.com/t/notify-assignee-reporter-when-running-python-script/77965)

<div class="topic-metadata">

**Author:** [@MillieAllen](https://community.developer.atlassian.com/u/MillieAllen)\
**Replies:** 0\
**Last updated:** [March 5, 2024, 10:19am UTC](https://community.developer.atlassian.com/t/notify-assignee-reporter-when-running-python-script/77965 "2024-03-05T10:19:55Z")

</div>

Hello, I am writing a script in python Jira to read issues and collate any that have a problem or need updating (eg incorrect dates etc). I am wondering if there is any way to generate an automated Jira email (like the …

---

## [How to access "Required Component" and "Impacted Component" fields in python script?](https://community.developer.atlassian.com/t/how-to-access-required-component-and-impacted-component-fields-in-python-script/77951)

<div class="topic-metadata">

**Author:** [@WuBingjieB](https://community.developer.atlassian.com/u/WuBingjieB)\
**Replies:** 0\
**Last updated:** [March 5, 2024, 1:32am UTC](https://community.developer.atlassian.com/t/how-to-access-required-component-and-impacted-component-fields-in-python-script/77951 "2024-03-05T01:32:07Z")

</div>

Required Component APIM\_CIM GWM\_ECG2 HUD IPC IPMA PSCM Impacted Component APIM\_CIM GWM\_ECG2 HUD IPC IPMA PSCM

---

## [How to login Jira cloud system in python code with only known email address?](https://community.developer.atlassian.com/t/how-to-login-jira-cloud-system-in-python-code-with-only-known-email-address/77810)

<div class="topic-metadata">

**Author:** [@WuBingjieB](https://community.developer.atlassian.com/u/WuBingjieB)\
**Replies:** 4\
**Last updated:** [March 1, 2024, 9:04am UTC](https://community.developer.atlassian.com/t/how-to-login-jira-cloud-system-in-python-code-with-only-known-email-address/77810 "2024-03-01T09:04:46Z")

</div>

auth = (email, password) jira.login(\*auth) auth needs two parameters and password is unknown.

---

## [BUG: using cql to retrieve page data truncates page title](https://community.developer.atlassian.com/t/bug-using-cql-to-retrieve-page-data-truncates-page-title/77112)

<div class="topic-metadata">

**Author:** [@DaraOhEidhin](https://community.developer.atlassian.com/u/DaraOhEidhin)\
**Replies:** 3\
**Last updated:** [February 9, 2024, 9:26pm UTC](https://community.developer.atlassian.com/t/bug-using-cql-to-retrieve-page-data-truncates-page-title/77112 "2024-02-09T21:26:34Z")

</div>

Currently I have pages titled in the format \<company\_page\_id\> - \<.page description\> As time goes by the \<.page description\> may be changed based on a central database but the \<company\_page\_id\> is constant. As such I n…

---

## [I want to access the confluence question-answer pages with rest API calls](https://community.developer.atlassian.com/t/i-want-to-access-the-confluence-question-answer-pages-with-rest-api-calls/76703)

<div class="topic-metadata">

**Author:** [@Alok1](https://community.developer.atlassian.com/u/Alok1)\
**Replies:** 3\
**Last updated:** [February 8, 2024, 4:30pm UTC](https://community.developer.atlassian.com/t/i-want-to-access-the-confluence-question-answer-pages-with-rest-api-calls/76703 "2024-02-08T16:30:28Z")

</div>

I can use Atlassian Python API to load a page and the page tree. I want to load Confluence Question Answer page with topic and popular questions. For each question, I want to get accepted answers related to it. Can any…

---

## [Problem - Confluence new REST API for groups / membership](https://community.developer.atlassian.com/t/problem-confluence-new-rest-api-for-groups-membership/69455)

<div class="topic-metadata">

**Author:** [@anon49427038](https://community.developer.atlassian.com/u/anon49427038)\
**Replies:** 3\
**Last updated:** [February 1, 2024, 7:48am UTC](https://community.developer.atlassian.com/t/problem-confluence-new-rest-api-for-groups-membership/69455 "2024-02-01T07:48:20Z")

</div>

Hello. Just trying to make new API work in Python here. Removing groups works fine as nothing seems to be required in arguments. Adding groups always pops with a message saying that ‘type’ is missing ? I can’t see in…

---

## [\`self\` url return into search url instead of ticket url](https://community.developer.atlassian.com/t/self-url-return-into-search-url-instead-of-ticket-url/76710)

<div class="topic-metadata">

**Author:** [@ClaudiaAnitaMagdalen](https://community.developer.atlassian.com/u/ClaudiaAnitaMagdalen)\
**Replies:** 3\
**Last updated:** [January 31, 2024, 11:18am UTC](https://community.developer.atlassian.com/t/self-url-return-into-search-url-instead-of-ticket-url/76710 "2024-01-31T11:18:16Z")

</div>

Hello! This issue started on Tuesday (30/01/2024), we usually hit the api like this: auth = HTTPBasicAuth(email, api\_token) headers = {"Accept": "application/json"} query = { "jql": jql, "startAt": start\_at, …

---

## [Mock Jira API for Jira Python Library](https://community.developer.atlassian.com/t/mock-jira-api-for-jira-python-library/76501)

<div class="topic-metadata">

**Author:** [@AdrienMerat](https://community.developer.atlassian.com/u/AdrienMerat)\
**Replies:** 4\
**Last updated:** [January 25, 2024, 11:17am UTC](https://community.developer.atlassian.com/t/mock-jira-api-for-jira-python-library/76501 "2024-01-25T11:17:25Z")

</div>

Hello, I am building a Python service which needs to interact with my company’s Jira (on cloud). To do that I use the official Jira library for Python (latest version). However when it comes to write unit tests for my s…

---

## [Invalid issue \`self\` url returned by Issue API in OAuth app](https://community.developer.atlassian.com/t/invalid-issue-self-url-returned-by-issue-api-in-oauth-app/76321)

<div class="topic-metadata">

**Author:** [@RemiCarton](https://community.developer.atlassian.com/u/RemiCarton)\
**Replies:** 3\
**Last updated:** [January 23, 2024, 6:12am UTC](https://community.developer.atlassian.com/t/invalid-issue-self-url-returned-by-issue-api-in-oauth-app/76321 "2024-01-23T06:12:44Z")

</div>

Hello! This issue started last Friday (01/12/2024), we use this python jira sdk to update issues this way: issue = JIRA(options={'server': JIRA\_URL, 'headers': {'Authorization': f'Bearer {access\_token}'}}).issue("\<the …

[Next page](https://community.developer.atlassian.com/tag/python/56.md?match_all_tags=true&page=1&tags%5B%5D=python)
