Determine if new comment has been added
Accepted answer
Comments
1 vote
One other answer
Hi Illona,
comments are not an attribute. There is an attribute name to represent them in various contexts, but there is not really an attribute representing them. Comments are a collection. The API is explained here: https://rsjazz.wordpress.com/2013/01/02/working-with-work-item-attributes/ in the comments section.
As far as I can tell you can not use comments in required attributes. After you have one already what would the semantic be?
You could try to write a custom pre-condition/advisor. Here are some examples: https://rsjazz.wordpress.com/?s=advisor&submit=Search The Approach I would try to use is to compare the old state and the new state. Get both sates and get the comments collection. Iterate the collection to look for differences e.g. compare the data available on comments. I don't know if that is going to work for you. There is only a limited amount of data available in comments to judge from.
Another approach might be a special text attribute. You could use a follow up action to copy the information from that attribute to a comment and clean it, if you want to make it mandatory again.
Just a thought.