Forums

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

Description field template: ScriptRunner behaviors and Xray test management

Asaf Porat
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!
May 28, 2018

Hi all,

We've been using ScriptRunner for Jira to auto initialize the Description field with a template for bugs in a certain project. This has been working fine. However, we've recently installed Xray which comes with a feature that automatically adds the test steps to the bug description when creating a defect from an Xray test. This feature unfortunately doesn't work, since the Description field is overwritten with the template defined in Behaviors.

 

Is there a way to prevent Behaviors from writing the template when creating the Bug from an Xray test? or alternatively, to append the test steps coming from Xray to the bug description?

 

I have tried using a condition to prevent the behavior from applying to a populated field (! underlyingIssue?.description) , but to no avail.

 

(Jira 7.6.2, ScriptRunner 5.2.2)

1 answer

1 accepted

1 vote
Answer accepted
Krishnanand Nayak
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 6, 2018

one solution i can think about to add a condition to the behavior. Check for the linking with the text run and/ test case that is creating the bug and if there is link the behavior should not be triggered. Hope this works for you.

Suggest an answer

Log in or Sign up to answer