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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • 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

Update evidences and attachments of test issue type

I am using the API provided here (https://docs.getxray.app/display/XRAY/Tests+-+REST#TestsREST-CreatingandEditingTests-JiraRESTAPI) to update my test steps. 

Here when I want to update the step level attachments I passing the JSON value like below 

"attachments":[  {            

"data": "gsddfgdsfg...(base64) ",            

"filename": "example2.txt",            

"contentType": "plain/text"       

 }]. 

But it showing me error

 

{    "errorMessages": [],    "errors": {        "Manual Test Steps""Unrecognized field \"data\" (Class com.xpandit.raven.beans.AttachmentBean), not marked as ignorable\n at [Source: N/A; line: -1, column: -1] (through reference chain: com.xpandit.raven.customfield.ManualTestStepsCustomField$TestStepSingleTransport[\"steps\"]->com.xpandit.raven.beans.InternalTestStepValueBean[\"attachments\"]->com.xpandit.raven.beans.AttachmentBean[\"data\"])"    }}

 

Can you help me how to update step level atttachments to  a TEST issuetype

1 answer

Hi @Johnson Anthony ,

  • to create Test issues you'll have to use Jira's REST API for creating isues as mentioned here . I've clarified the documentation as currently it's not possible to add attachments while creating Test issues; it has to be done afterwards
  • to *update* Test issues, namely the steps, I would recommend to use Xray specific endpoints  namely the  HTTP PUT /rest/raven/1.0/api/test/{testKey}/step as describe in

 

Just to let you know that we've created this open-source project that contains usage examples of the API available for Postman:  https://github.com/Xray-App/xray-postman-collections

This can be a good way to to see concrete examples of API calls.

 

Regards,

Sérgio

Suggest an answer

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

How to log work and track time in Jira when a person is part of multiple teams

  The manager’s daily activities include a list of challenges to reach high levels of efficiency for their teams. Part of these challenges is related to how to deal with the worklog systems sin...

58 views 2 1
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