Hi,
I am new to jira plugin development. I am designing vm pages.
I noticed that there are #controlHeader and #controlFooter tags in vm file.
Examples:
1. #controlHeader($action 'root' ${i18n.getText("common.params.cacheTimeout.name")} true $displayParameters.noHeader)
For this, I am writing a something from properties file (i18n). But, How can I set the text alignment, size, vs?
When I delete the controlHeader and write it simply with <p> tag, the text is displayed so above. (not the some position)
2. #controlFooter($action ${i18n.getText("params.linkto.desc")} $displayParameters.noHeader)
How can I use these tags? Can anyone suggest a tutorial or answer my question?
Thanks
Atlassian usually documents all things. Why not to these velocity macros? :S
Anyway, thanks eirik.
Remember to accept ;)
You can find the macro detail in WEB-INF/classes/templates/plugins/jira/macros.vm file, even if you don't have the source.
I don't think Atlassian had a documentation about all those available macros. There are too many helper macros for that I guess ;)
well, Can I add a makro to macros.vm file? or Can I change an existing macro?
I think that it will effect all pages if I edit an existing macro.
It will be better if I add a new macro. Am I right?
If it is your own macros then maintain them in your own code, yes. I'm quite sure you can have an extra .vm file in your plugin and include macros from it.
Recommended Learning For You
Level up your skills with Atlassian learning
Learning Path
Apply agile practices
Transform how you manage your work with agile practices, including kanban and scrum frameworks.
Learning Path
Configure agile boards for Jira projects
Learn how to create and configure agile Jira boards so you can plan, prioritize, and estimate upcoming work.
Jira Essentials with Agile Mindset
Suitable for beginners, this live instructor-led full-day course will set up your whole team to understand how to use Jira with an agile methodology.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.