Forums

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

Jira Automate Identify If a Component Has been Removed

Daniel Lupton November 7, 2023

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

0 votes
Wasim
Contributor
November 7, 2023

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😊!!  

Daniel Lupton November 7, 2023

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