Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Jira-Plugin development-Velocity(vm) files #controlHeader and #controlFooter

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

1 answer

2 votes
Deleted user Oct 15, 2012

I had a related question. The #controlHeader is a JIRA specific macro, and has to be used as is. They are not documented. If you have access to the source code you can find the macro definition, then use it in your own code. Alternatively you can override the styling in JIRA, but I don't think I'll recommend that.

Atlassian usually documents all things. Why not to these velocity macros? :S

Anyway, thanks eirik.

Deleted user Oct 15, 2012

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?

Deleted user Oct 16, 2012

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.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Agile

On-demand: Fireside chat with Atlassian on scaling agile organizations

Scaling an agile organization and setting it up for success over the long term is a hard thing to do. We hear a common set of questions from customers all the time, questions like: Can agile scal...

3,947 views 2 17
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you