Forums

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

Is there any possible way to iterate a list with smart values so...

Deleted user September 30, 2021

Is there any possible way to iterate through a list of comments with smart values to pick and print just the last comment that is not internal  in an e-mail when an issue change state in an automation rule?

I've seen that iteration is possible through a for each, and that inside of it, it is also possible to set constraints for something to be printed or not, in the documentation right here:  https://support.atlassian.com/jira-software-cloud/docs/smart-values-lists/ . But my problem is about selecting the last element that pass the condition.

Thanks in advance

2 answers

1 vote
Martin Bayer _MoroSystems_ s_r_o__
Community Champion
September 30, 2021

Hi @[deleted] , welcom on the community :).

I just played with it, but I'm only able to filter out all the public comments and execute an action on each of them. But it would be great to "collect" the results to collection and execute the action on Last element. I will try to ask community leaders.

Sharing the rule (IT IS NOT COMPLETE as described above):

Selection_399.png

Deleted user September 30, 2021

Thanks for your help, you have understood perfectly my problem. And I was at the same point you left the rule but with an e-mail as a notification.

Thanks for your time trying. :) 

0 votes
Kamil Blicharski
Contributor
September 30, 2021

Look here 

Deleted user September 30, 2021

Yes I've seen that, thats why i know I can check if a comment is internal or not, but that doesnt resolve the problem.

Suggest an answer

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

Atlassian Community Events