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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,463,631
Community Members
 
Community Events
176
Community Groups

Incomplete REST API Import with three double-quotes in text field

I'm using the app Xray Testmanagement for Jira, where Jira Issues are extended f.e. with the Issue Type "Test". This Issue Type has a text field, which can be updated through Jira REST API export and import calls.

Ex- and Imports work like a charm, with a single exception that everything what is wrapped within three double-quotes (""") is ignored during import. These three double-quotes are used in Xray to display multiline arguments as specified in Gherkin.. and are needed. 

Is there a specification/configuration that prevents the disappearance of the multiline? Should they be escaped for Jira to import them correctly?

I'm sorry, if this question is asked in the wrong place, but any help is greatly appreciated.

1 answer

Hi @Malkowski ,

can you please clarify:

  1. are you using Xray on Jira Cloud or Xray on Jira on-premises (server/DC)?
  2. can you give a concrete example of the call that you're making, identifying the endpoint and also the contents and what you get in Xray?

Thanks

Hi @Sergio Freire - Xblend,

I'm not the host of the used Jira instance and can only make assumptions.  It is either Jira Cloud or an on-premises installation in Cloud. I hope that helps nonetheless.

Concrete example: 

I created the Jira Xray Issue Type Test with these attributes:
- Label: some-label
- Test Type: Cucumber
- Cucumber Type: Scenario Outline
- Cucumber Scenario: 
     When the requester sends request to
     """
     /<partnerkey>/vehicles/<VIN>/dataavailability?vehicleInformation=<ind>&businessPartnerData=<ind>&disclosureClaims=<ind>
     &specialOffer=<ind>&recallInformation=<ind>&serviceBook=<ind>&serviceHints=<ind>&workshopComplaint=<ind>&repairHistory=<ind>&languageID=<languageID>
     """
     Then a 200 HTTP response is received with vehicle specific informations

 

Then I exported this Test via More > Export to Cucumber, where I got a Feature File with the following scenario:

#Request endpoint with partnerkey and vin
@some-label
Scenario Outline: Successfully get data with request parameters
When the requester sends request to
"""
/<partnerkey>/vehicles/<VIN>/dataavailability?vehicleInformation=<ind>&businessPartnerData=<ind>&disclosureClaims=<ind>
&specialOffer=<ind>&recallInformation=<ind>&serviceBook=<ind>&serviceHints=<ind>&workshopComplaint=<ind>&repairHistory=<ind>&languageID=<languageID>
"""
Then a 200 HTTP response is received with vehicle specific informations

 

Next I imported this exact Feature File through Jira REST API call to /rest/raven/latest/import/feature?projectKey=MYPROJECTKEY and got an updated Cucumber Scenario in the specified Jira Test as:

When the requester sends request to 
Then a 200 HTTP response is received with vehicle specific informations

 

Currently I work around that issue by using a single line annotation (") instead of the multiline ("""), which works like a charm. Everything is imported as it should be. Alas it's less readable.   

Hi again @Malkowski ,

then it seems to be a bug. You should reach out Xray support team detailing these steps, so the it can be handled properly.

Regards,

Sérgio

Hi @Sergio Freire - Xblend

thank you for your super fast response!

For everyone with the same issue: After I received the SEN, I created a Xray support request, which hopefully solves this issue.

https://jira.xpand-it.com/servicedesk/customer/portal/2/SUPPORT-31756

Like Sergio Freire - Xblend likes this

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events