Forums

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

How to edit default field using Smart Value?

Muhammad Jahanzaib Tariq_ T-6074 March 7, 2023

Hi All,

I want to set a value of a component according to the linked issue. Let me give a scenario:

When I create a 'Test' and link it to a 'Story' (issue type), i should automatically set the component value of Story to the Test issue.

So, if issue 'ABC' (Test) is created with no components, and linked to Story issue 'XYZ' (having components  as '123')  during creation, then after the rules runs, 'ABC' should have component value set as '123'.

Here is the rule and I am stuck at the action part :

 

image.png

Waiting for you suggestions :)

1 answer

0 votes
Trudy Claspill
Community Champion
March 7, 2023

Hello @Muhammad Jahanzaib Tariq_ T-6074 

A problem with your current rule is that with branching the actions you add to a branch will be executed against the issues in that branch, not the trigger issue. From your description, in this scenario you want to be able to modify the trigger issue.

Do Tests get linked to more than one Story?

Do you have a unique link type that you use for linking Tests and Stories, or do you use a link type that may be used to link Tests to other issues for other purposes?

Muhammad Jahanzaib Tariq_ T-6074 March 7, 2023

Hi Trudy,

Yes, in this scenario, I want to update the Trigger issue i.e. Test.

Tests will not get linked to multiple Story.

Right now, there is no unique link type that I will be using for this purpose.

Actually, I am using a plugin Zephyr and using the BDD feature of it. Now, BDD feature creates a Story first, then in that Story, we type a Scenario in it, which creates a Test. This is why I am using the 'when issue is created' trigger. 

Now, when this test is created, it is linked to the story with 'relates to' link.

I have attached a screenshot for your reference. 

Waiting for your help :)

Muhammad Jahanzaib Tariq_ T-6074 March 7, 2023

image.png

Trudy Claspill
Community Champion
March 21, 2023

Hello @Muhammad Jahanzaib Tariq_ T-6074 

You can copy the Components from the linked issue like this:

Screen Shot 2023-03-21 at 2.41.40 PM.png

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