Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

CVS import Failure for Xray

Jesto sebastian April 8, 2022
I am getting the below shown error while uploading Test cases in Xray using Test case Importer with CSV file. This error occurs when the story is entered in the CSV file to link to a test using the mapping - Link "Tests"(outward). Please note that I am able to import the CSV file if I am not trying to link the test with a story using the mapping Link "tests"(outward)
"Error updating issue with key POS-672 in Jira: Issue update failed! - issuelinks: Field 'issuelinks' cannot be set. It is not on the appropriate screen, or unknown."
Please share you experience if you come across any such issues.

1 answer

0 votes
Stefan Salzl
Community Champion
April 13, 2022

Hi @Jesto sebastian and welcome to the community,

In order to get an overview and deeper insight could you please send a screenshot of a test case?

Thanks in advance.

Best
Stefan

Jesto sebastian April 13, 2022

CSV.JPG

CSV to Xray field mapping.JPG

Hi @Stefan Salzl ,

Please see the screenshot of both CSV and the mapping I tried in Jira.

In CSV, "Key" represents the test and Link represents the Story to which the test to be linked.The attached CSV is an update to an existing test in Xray and that's why I mentioned the Test issue ID in the CSV. I get the same error message even if I upload a CSV for creating new tests. Please note that the upload(Create/Update) test cases through csv works fine as long as I am not trying to link to a story.

Stefan Salzl
Community Champion
April 13, 2022

As mentioned in my former post it would be helpful to see a test case issue. The error message seems that the issue link field is not part of your screen for test cases.

Best
Stefan

Jesto sebastian April 13, 2022

Hi @Stefan Salzl 

Please find below a sample Test case and respective fields in that issue type.

Sample Test Case  in Jira.JPG

Like Stefan Salzl likes this
Stefan Salzl
Community Champion
April 14, 2022

My assumption is that linked/linking issues is not part of the create/update screen of issue type „Test“.

Could you please check your screen configuration? 

If you create a Test case manually - are you able to link a story directly within your „create“ screen? (creating via create button - not out of a Story or any other coverable issue).

Best
Stefan

Like Jesto sebastian likes this
Jesto sebastian April 14, 2022

Hi @Stefan Salzl ,

Yes, I am able to link a test manually to a story as shown below(using Link issue button)

Link Test to story.JPG

Once I link the test to a story, the story will show the test coverage/execution results as expected(See below).

Story shows the test coverage and execution results.JPG

Stefan Salzl
Community Champion
April 14, 2022

Please read the instructions carefully:

This is your „view“ screen. Please check if this is available when you create an issue and/or check the screen configuration.

Best
Stefan

Jesto sebastian April 14, 2022

@Stefan Salzl  - I get it now. I don't have the link option while creating a Test. I think I will have to work with my Jira admin to add this filed to the create screen sothat this issue will be resolved. Thanks Stefan for the great input! really appreciate it.

Like Stefan Salzl likes this
Stefan Salzl
Community Champion
April 14, 2022

AWESOME 🥳🙌🏼 great we could get closer and (hopefully) tackle the root cause.

During the import the same thing happens than while creating the issue. Therefore if the linking is not available in the UI (screen) it cannot be added via import either. Your admin will be able to help and change the screen.

Please consider to accept the answer when this solves the problem.

Best
Stefan

Jesto sebastian April 14, 2022

Sure, let me work with Jira admin and will accept the resolution.

subhrajeet panda
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 15, 2024

Hi i am getting this error while importing test cases xray.csvimport.step.projectMapping.wrongScheme

Suggest an answer

Log in or Sign up to answer