IF statement to display issue name | Community
Skip to main content
December 6, 2023
Question

IF statement to display issue name

  • December 6, 2023
  • 1 reply
  • 443 views

Hi

 

I'm trying to create a custom column in an issue report where the name of the issue only appears if the issue sits in a particular project, does anyone have any ideas on the code needed?

 

Thanks

 

Chris

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Community Advisor
December 6, 2023

Hi Chris,

 

The following would do it:

 

textmode=true valueexpression=IF({projectID}="INSERT-PROJECT-ID-HERE",{name},"") valuefield=name valueformat=HTML

 

What this expression is saying is, If the project ID of the issue is X, then output the name, otherwise output nothing.

 

Hope that helps.

 

Best Regards,

Rich.

ChrisRo1Author
December 6, 2023

Thank you so much Rich, this worked perfectly!!