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

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 - 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]


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

Security Advisory for Jira Service Management

On October 20, 2021, Atlassian published a security advisory for Jira Service Management. The full advisory is available at this link.  We've seen a number of questions already asking for...

242 views 1 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