Edit Components using Automation for Jira

Muhammad Jahanzaib Tariq_ T-6074 March 9, 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

 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.

 

image.png
Waiting for you suggestions :)

1 answer

1 accepted

1 vote
Answer accepted
Jeroen Poismans
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 9, 2023

Hi!

You started from the issue created and will certainly also get there with some tinkering, but I tried a different approach for a similar use case. I started from the Linking of the issues:

Screenshot 2023-03-10 at 08.33.32.png

 

In this example Task is the same as your Test.

  • When an issue is linked
  • Check if it is a Story
  • Then for all the linked issues:
    • Check if there is a Task (Test)
    • For the Tests, edit the issue and copy the Components form the Trigger issue 

Hope this helps!

Jeroen

Muhammad Jahanzaib Tariq_ T-6074 March 12, 2023

Thank you so much Jeroen, this was very helpful.

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