Issue status in velocity template

Hi,

I make tab panel plugin in velocity template need display issue status.

how?

Please help.

Thks.

2 answers

1 accepted

1 vote

Depends on what the tab is on, but in most cases (and assuming Jira 6.1) $issue.getStatusObject().getName() will get you the name of the status.

I proved to do what you have mentioned JIRA V. 5.1 and shows nothing on my browser only shows $issue.getStatusObject().getName () :(

Well, the stuff you do with $issue is basically calling the java api behind it - have a look at the api docs for the relevant version of Jira.

Also, if a .vm is not behaving, it can be useful to use simple brute force. What does $issue show? Or $issue.getStatusObject() ?

mmm, Al try:

$ issue

$ issue.getStatusObject ()

html sample:

$ issue

$ issue.getStatusObject ()

I still have the same problem.

On the contrary if I try: $ jiraUserUtils.getGroupNamesForUser in html shows Admin.

If all you get is $issue, then the $issue velocity variable doesn't have an issue in it. There's no way any code is going to work - there's nothing to do!

You need to have a $issue to work with.

(Although, I just noticed you've said "$ issue", not "$issue" - make sure you are using $issue)

Thank you very much, I resolved the issue object from the working class and send to velocity.

regards

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,196 views 13 19
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot