This question is in reference to Atlassian Documentation: Flagging an issue
We need to use the Flag function to mark issues that have Impediments. However, we also need a way to report which issues were flagged at one time once the flag is removed.
Any suggestions?
We created a Calculated Number field to try and make a formula to give us a "1" every time the issue is flagged. We also need it to add to 1 each time the same issue is flagged. Here is the code but it doesn't work:
@Formula:
Object flag = issue.get("customfield_10130"); int number = ((flag != null ? Integer.parseInt(flag.toString()) : 0 )
if( flag != null ) {number = ((flag != null ? Integer.parseInt(flag.toString()) : 0 ) 1) + flag;
}
return number;
-->