Forums

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

Auto Populate a field from backlog while creating a bug

Thinesh January 10, 2023

Hi all,

I wanted to auto-populate a custom field named scope category when I create,

  • subtask under a backlog (below snap of the rule - this works fine ) . In the create screen the value will not be auto populated but after the subtask is created, if I open the subtask this scope category field is there. I am fine with this result.image.png
  • But I also want to have the scope field when I create a bug linking it to the backlog. Then want the scope field to be present. But I am not able to achieve this. Find below the rule;image.png

Please help me to achieve the second scenario.

 

Thanks,

Thinesh

1 answer

0 votes
Trudy Claspill
Community Champion
January 11, 2023

Hello @Thinesh 

In what way, exactly, is the second rule not working? 

You can't use an Automation Rule to populate a field in the Create Issue dialog.

The rule is triggered when the issue is created. The issue is not created until you click the Create Issue button within the Create Issue dialog, after you have filled in the fields. 

The rule that you have written is triggered when a Bug is created, and is trying to Edit the Scope Category field in that same Bug. But your Edit action says "copy the value from the Trigger issue". The Trigger Issue is the Bug you just created. The rule is trying to edit a field and set that field to the value that is already there, based on the logic of your rule.

When the Bug is created, from what issue do you want to get Scope Category?

Thinesh January 11, 2023

I want the scope category from the backlog under which the bug is linked/created under.

 

In the edit action I have tried with parent issue and all other issues type present. None of them is working.

For subtask (scenario 1 stated in my question) it is working as expected, it is only not  working for scenario 2 (bug creation)

Trudy Claspill
Community Champion
January 12, 2023

Hello @Thinesh 

Can you walk us through the steps for how you create the bug and link it to the backlog? When you say "backlog" do you mean you are linking it to an issue in the backlog?

Can you show us an example of a bug that you have created this way, and point out the "link to the backlog" information?

When you are creating the link between the bug and the other issue...

- do you only link it to one other issue?

- are you linking the bugs only to one particular Type of issue?

- do you always use the same Link Type?

- do you use that same Link Type for other scenarios?

Thinesh January 12, 2023

Steps to create a bug & Link it to the backlog

image.png

Upon click on the create linked issue we get an issue creation screen with issue type = bug, which would have the backlog ID and the scope category field

image.png

 

image.png

 

When you are creating the link between the bug and the other issue...

- do you only link it to one other issue?  - Yes, only issue only

- are you linking the bugs only to one particular Type of issue? Yes, Issue type = backlog

- do you always use the same Link Type? = Yes (like blocked by or blocks)

- do you use that same Link Type for other scenarios? Yes 

Suggest an answer

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

Atlassian Community Events