Forums

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

Jira automation to clone "fix version" filed from a Parent when bug is converted to sub-bug

Tatiana Shkil
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!
August 27, 2024

Hi, can you please help me to solve my problem?

We need to make an automation for this action:

We manually convert bug into sub-bug and choose an issue with "Release" type as a parent issue. What we need is to copy "fix version" value from parent issue to sub-bug after it is converted into sub-bug.

Is there a way to do it with automation? 

I've tried to manage it with something like this, but it doesn't perform any action.

Снимок экрана 2024-08-27 в 10.57.21.png

1 answer

0 votes
Lucas Lombardo
Contributor
August 27, 2024

Hello Tatiana,

I suggest you to try the following automation :

Set the trigger to "Issue updated":

  • Select "Issue updated" as the trigger
  • Add a condition to check if the issue type changed to "Sub-bug"

Add the following conditions:

  1. Issue type is Sub-bug
  2. Parent issue type is Release

Create an action to copy the Fix Version:

  1. Select "Edit issue" as the action
  2. Choose "Fix Version/s" as the field to edit
  3. Set the value to: {{parent.fixVersions}}

Normally after that each time you will convert a bug to a sub-bug under a Release issue, the Fix Version will automatically be copied from the parent Release to the sub-bug

Tatiana Shkil
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!
August 28, 2024

Hi Lucas, thank you for your response!

Could you please help with "Add a condition to check if the issue type changed to "Sub-bug"" part? Which condition can be used to check the issue change? I've tried "Issue field condition" with both "bug" and "sub-bug" values, but it doesn't work. 

Lucas Lombardo
Contributor
August 28, 2024

Hello :)

I was also thinking about "Issue field condition" which is normally the easiest way.  
In your test did you select properly :

Field --> Status
Condition --> Equals
Value --> Sub-bug

?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events