Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

xray adding evidence to a Execution with api Edited

i am trying to upload a picture as evidence to a testRun in the execution Issue


image_path = "C:/work/screenshots/repo2.png"
is_file = os.path.isfile(image_path)

def get_base64_encoded_image(image_path):
with open(image_path, "rb") as img_file:
return base64.b64encode('utf-8')

deco = get_base64_encoded_image(image_path)

data = {
"data": deco,
"filename": "test1.png",
"contentType": "image/jpg"

url = "https://my_site/rest/raven/1.0/api/testrun/39340/attachment"
req =, json=data, auth=(user, password))

but i get 500   i am missing a step? or this is a bug?  i am following,  


if i do "get" just to see if there is any evidence (checking if i was able to upload something) i also get 500


req = requests.get(url=url, json=data, auth=(user, password))


1 answer

=( my bad,  i was putting the wrong user and password,   but i was expecting a more descriptive error,  or like run not found, wrong password, you are doing something wrong etc... 500 server error 

Hi @demian kurejwowski ,

I also agree that the error should be more clear.

Some time ago, I've released some collections for Postman as open-source, that contains calls for all endpoints. You may eventually find it useful:




Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Marketplace Apps & Integrations

Bitbucket Smart Commits vs. Genius Commits - What's the difference?

If you already heard about Smart Commits in Bitbucket, know that you just stumbled upon something even better (and smarter!): Genius Commits by Better DevOps Automation for Jira Data Center (+ Server...

106 views 0 2
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