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
Community Members
Community Events
Community Groups

Xray - Auto populate fields in Create screen with data from a Linked Issue?

We are using the X-ray App to run our Quality Assurance and Testing department. 

In the Xray app, you have the option to create a Defect issue straight from a Test case execution.  I would like to auto fill certain fields in the Defect with data that is already in the Test case execution.

In particular, I'd like to populate a custom field with a list of the "steps" that are detailed in the Test case. 

Here's what I'd like to do:

  • User initiates Test Execution for the Test.
  • User encounters a Defect and clicks the "Create Defect" button in the Execution itself.
  • The Create screen appears for the Defect issue type (Jira automatically Links the Test issue to the Defect Issue already).
  • We would like Jira to automatically populate a field within the Defect's Create screen with the steps that are indicated in the Test.

Is this something that can be done through the API?  I'm not familiar with programming, at all, but wondering if this is possible.  

2 answers

1 accepted

2 votes
Answer accepted

Hi Reuben, 

There is an Xray configuration that enables that option, to activate it you must access the "Add-on" tab on your Jira Administration Tools, go to the "Miscellaneous" window under the "Xray" section and travel to the "Defect Default Values" area:


There you can enable the "Include Steps Table in Description" like it is shown on the image above.


Hope this helps!

Best Regards, 

Team Xray. 

Hey Jose,

Is it possible to add bug template whenever we create bug ticket? Like in above question if I want to add some default text I have with me (say description, browser version etc.) Can I do that?


@José Domingues [Xray] 

@Manisha Minde

No, currently, only the Test Steps are copied over to the New Defect if the mentioned option is enabled. No other fields are passed along, nor any extra data.


Best Regards, 




Solution Architect and Testing Advocate @Xray

Personal blog on testing, Agile and software development:

Follow me on Twitter:

@José Domingues [Xray] 

Is the option "Defect Default Values" available in cloud instance also? Because I am not able to find the particular option under "Miscellaneous" section.

Hi @Sneha Kumari 

Due to the architecture limitation currently, it is impossible to have that option working on Xray Cloud the same way it works on Server.

Kind regards,
Rogério Paiva [Xray Support Team]

Hi... Can you confirm if the Defect Default Values option is not available in Cloud instance or it is not working 100% correctly like it works on Server?


When I had trialed the X-ray cloud I remember seeing this option but now when I actually have cloud subscription I am not able to see Defect Default Values under X-ray miscellaneous settings. 

Hi @Ami Panchal 

By not working, I meant the feature does not exist in Cloud, so it does not have the option Defect Default Values.

Kind regards,
Rogério Paiva [Xray Support Team]

@Rogério Paiva - Xray Xporter Hello, do you know if this has changed or updated at all? Is there any other potential workaround? Thank you!

0 votes
laralg Rising Star Nov 26, 2019


I think that you would need some kind of app to do this. If you are not familiar with programming I would try first with Automation for Jira, and if that is not enought then Scriptrunner.

good luck.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira Service Management

An unofficial way to monitor a JSM mail handler for errors

...eturns true if any content is returned for the s...

669 views 3 20
Read article

Atlassian Community Events