27 questions
0
votes
0
answers
53
views
If I update a confluence page by sending an html body using atlassian-python-api, can the body include working html anchor tags?
I am writing a python script that creates an html body, then updates a confluence page with the html contents. For simplicity's sake, the html body can be divided into two sections: 1.) Overview and 2....
-1
votes
1
answer
33
views
in mysql data base i have two tables named applications and sign_up, sign_up table has primary user_id and which is also Foreign key in applications
I want to perform the scenario user can only apply for job if user with user_id is register in sign_up table first, for the above query and route I try to apply for job both registered and ...
-2
votes
1
answer
151
views
How to DONE jira issue
How to change the status of a task in jira as completed
I'm trying to do this using the atlassian-python-api, but I get an error
requests.exceptions.HTTPError: The status change identifier must be an ...
1
vote
1
answer
832
views
Extracting data inside a table from confluence
I am trying to extract the table from a confluence page and write into a dataframe using the below code.
I've been getting the 401 unauthorized error, reason could be access related, anyhow i wanted ...
1
vote
1
answer
912
views
How to Retrieve Lines of Code Changed in a Bitbucket Pull Request using atlassian-python-api?
I'm working on a project and using the atlassian-python-api to interact with Bitbucket. I'm trying to retrieve the lines of code changed in a pull request, but I'm unable to find a specific function ...
0
votes
3
answers
1k
views
Confluence REST API - HTTPError: 404 Client Error... appended `rest/api/content/<page_id>` at end of URL
Goal: Establish connection to Confluence page, via. atlassian-python-api==3.41.1.
Configuration:
Username - e-mail address
Password - API key (regenerated many times)
Permissions:
Contacted admins
...
0
votes
1
answer
324
views
How to convert a JIRA task to a subtask from Atlassian Python API?
I'm trying to convert a JIRA issue to a subtask
That's what I'm doing:
converted_to_subtask = jira.update_issue_field(
"FSTORE-326", {
"issuetype": {"name": &...
2
votes
1
answer
1k
views
Unable to fetch the jira cloud assets through atlassian-python-api
I am working on a Atlassian Jira cloud product. I have a requirement to get the details of Jira cloud assets and update a field with some specific key-value pair. To achieve same, I have chosen python ...
1
vote
0
answers
897
views
How do I use a pytest fixture to mock a child class's inherited methods with classes as properties while maintaining the API contract using autospec?
How it started
I'm testing a class, ClassToTest, that makes API calls using atlassian-python-api. The tests are going to ensure that ClassToTest performs correctly with the data it gets back from the ...
0
votes
1
answer
1k
views
atlassian-python-api for Confluence: get_page_by_id works, create_page doen't
The message is Could not create content with type page
The connection works with get_page_by_id, and of course I have all privileges on the space and the server. append_page works also. Just ...
0
votes
0
answers
2k
views
List of all commits to bitbucket repo using python script
I am trying to figure out how to get a list of all commits made to a bitbucket cloud repository over a given timeframe using the Atlassian Python API (https://atlassian-python-api.readthedocs.io/index....
1
vote
0
answers
1k
views
Cannot pip install atlassian-python-api due to subprocess-exited-with-error
I am trying to install the atlassian-python-api using pip but upon trying to do so, I get the following error: Getting requirements to build wheel ... error: subprocess-exited-with-error.
I am ...
2
votes
3
answers
4k
views
Python : atlassian.errors.ApiValueError: No space or no content type, or setup a wrong version type set to content, or status param is not draft
I am using confluence API (using Python)to update an existing confluence page but I am facing the below error:
atlassian.errors.ApiValueError: No space or no content type, or setup a wrong version ...
3
votes
2
answers
7k
views
Get page id of a confluence page from its public url
How to get a Confluence page_id given a page_url. For Eg:
If this is the Display URL: https://confluence.som.yale.edu/display/SC/Finding+the+Page+ID+of+a+Confluence+Page
I want to get its page_id ...
1
vote
1
answer
1k
views
converting utc to est time in python
I have two dates, start date and end date, where both needs to used in google tag manager in EST timezone using python.
Currently when I fetch the dates from jira using api, I am getting in the UTC ...
1
vote
2
answers
2k
views
getting error on updating assignee and comment field in JIRA using python
I am using python to automate JIRA process, while doing I am unable to update Assignee and Comment fields.
While updating Assignee field, not getting any error, but the value is not updated properly, ...
1
vote
0
answers
454
views
atlassian-python-api - How to trigger pipeline using pattern?
In my project I host at the bitbucket I have such bitbucket-pipelines.yml file:
pipelines:
default:
- step:
name: "Test and build"
...do something
- step:
...
1
vote
1
answer
309
views
atlassian_python_api checking if blogpost exist
I'm using atlassian-pytho-api version 3.4.1.
I need to create a blogpost which I successfully made this way
confluence.create_page(space, title, content, type="blogpost")
Now, I want to ...
0
votes
1
answer
174
views
Jira API django connection adapters error
Not sure what this django error is trying to tell me. Using a library called atlassian-python-api.
If I hardcode that URL into the jira object, a request is sent to the Jira api and there is no error. ...
0
votes
1
answer
1k
views
How to fetch created and updated status of JIRA ticket with Python API?
I'm trying to fetch the created and updated values from tickets in JIRA.
I'm able to pull issues using the following snippet (URL and credentials redacted):
from atlassian import Jira
import pandas as ...
0
votes
1
answer
3k
views
Jira Data Extraction Rest API
I want to extract data using python rest api, but it only allow 200 records at same time
is there any way to get all data in Jira que ?
Guessing an export to CSV then pull into excel for reporting ...
2
votes
1
answer
393
views
Setting a commit message / update comment when editing a page with Atlassian Confluence Python API
I am using the atlassian-python-api to update a page as described in the documentation:
from atlassian import Confluence
conf = Confluence(url=srvr, username=usr, password=pswd)
page_id = '12345'
...
3
votes
1
answer
10k
views
requests.exceptions.HTTPError: 401 Client Error atlassian-python-api
I am trying to connect to a Confluence page using the python wrapper on the API (as I am not familiar with any of this) but I keep getting the following error:
requests.exceptions.HTTPError: 401 ...
3
votes
1
answer
8k
views
access confluence page via python script
I need to access a Confluence page via python script, but although I found some examples online, I wasn't able to do it.
Here are a few attempts:
import requests
urllogin = 'https://myorg/confluence/...
3
votes
1
answer
11k
views
How to download a Confluence page attachment with Python?
With the atlassian-python-api 1.15.1 module and python 3.6 how can I to download a file attached to a Confluence page ?
The page actions section of the API documentation mentions an API ...
1
vote
2
answers
1k
views
Preserve new lines in Confluence API
I am having the list of dictionaries:
{'associations': [{'host1': ['v1','v2']}, {'host2': ['v2,v3']}, {'host3': ['v1', 'v7']}]}
This list of dictionaries I am trying to pass to confluence page in ...
2
votes
1
answer
5k
views
How get context Confluence using atlassian-python-api?
I want to get context page confluence,
used python module atlassian-python-api
https://github.com/AstroTech/atlassian-python-api
found example how to create new page
from atlassian import ...