Can't pass param from web-section condition's to the condition class

Hi!

I am making a web-section for a board. It should be available depending on the board type.

added own class for condition

 <web-section>
        <condition class="xxx.xxx.xxx.conditions.IsAgileBoard" >
            <param name="boardType">board.type</param>
        </condition>
 </web-section>

For now just trying to get the board type in the log

public class IsAgileBoard  implements Condition {
    private String boardType;

    @Override
    public void init(Map<String, String> params) throws PluginParseException
    {
        boardType = params.get("boardType");
    }

    @Override
    public boolean shouldDisplay(Map<String, Object> map)
    {
       log.warn("boardType :", boardType);
       return false;
    }
}

in the log

0 WARN admin 54x130274x1 3en875 0:0:0:0:0:0:0:1 /rest/greenhopper/1.0/xboard/toolSections [xxx.xxx.xxx.conditions.IsAgileBoard] boardType

Please tell me what am I doing wrong?

I think you forgot the placeholder while logging:
log.warn("boardType: {}", boardType);

Thanks it helped.
I see another problem inside the param tag context parameters do not work.
in log

boardType: board.type

and I’m waiting in the log

boardType: SCRUM

Tried with $ and without

How else can I pass the board type?

This is expected behaviour, since you’re passing “board.type” string to param:

<param name="boardType">board.type</param>

I don’t understand what to do? How to pass the type?