Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Jira Automate Identify If a Component Has been Removed

I have a use case where if a component is removed from an issue we want to remove the component from all child issues.

I have been able to use {{#changelog.components}}{{toString}}{{/}} to identify is a component has been added to an issue BUT I cannot find a way to identify if the component has been removed as the removed components are not in the change log that I get form this.

 

Does anyone have any ideas on how we can identify if a component has been removed from an issue?

 

 

1 answer

Hi @Daniel Lupton ,

Welcome to the Atlassian Community. 

As I understand you are able to fetch the latest component from the changelogs but unable to perform the deletion steps for automation, is it right??

If this is the case go through the below link,

how to delete specific issue components using automation for Jira

Here you can find the steps to delete the component from an issue and then use it in your automation rule as you required.

 

I hope it helps😊!!  

Hi Wasim,

I have thr code to delete the component but what I am first trting to determine is what component was removed.

 

For some issues I have 3 components assigned and then delete 1 or 2 components how can I identify which component(s) have been removed?

 

I can retrieve the to and from strings but these return strings with no delimiter and so make it hard to split out the components.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events