Hi, I am developing a JIRA plugin, and I need a form to set some values.
The trouble is when I try to show the previous value in the form it won't happen.
..... <div class="field-group"> <label>User</label> <input class="text" name="usr-id" type="text" style="cursor: auto; background-attachment: scroll; background-position: 100% 50%;"> <span>Last User: $action.getUSER()</span> </div> .....
public class ConfiguracionGitIntegrationAction extends JiraWebActionSupport { ..... public String getUSER () { return (info.getUser_id().equals(null))? "" : info.getUser_id(); } ..... }
You know a way to do this?
Community moderators have prevented the ability to post new answers.
sorry that was a typo when I was writing this question here.
I did copy and paste to write the name from de .java to .vm. So that isn't the problem. Also i tried another version that i saw in internet like "$(action.get_USER)" but those version doesn't work to me.
thank you.
Hi!
There is no such method getUser, there is a getUSER, as i think. Use same letter case in Java file and Velocity template.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.