How do I give a web-item a function?

I am currently trying to write a plugin which displays an button in the "more action" section of the issue-sreen.

I know that I can create a button using a web-item, but I don't want it to link to another page but to do an action. For example creating another issue or something alike.

I appreciate any help.

1 answer

1 accepted

0 vote

You can do that. Just give the url to the action in the web-item link. /secure/yourAction!yourCommand.jspa.

so is using a webwok the right choice?

Yes, indeed.

alright. thanks. =)
now I'm experiencing troubles with opening the input.vm I wrote. It should open if the doDefault() method returns input, shouldn't it?

I'm not quite sure, because that's what I did and it's still not working. I suspect it's a problem with the sources.... also when I develop a plugin by atlas-run and try to open the jira instance it doesn't activate the plugin and doesn't allow me to, that's kind of a pain.

It should open if the doDefault() method returns input, shouldn't it?

Depends on what view is mapped to "input". You can see it in the module description in atlassian-plugin.xml.

also when I develop a plugin by atlas-run and try to open the jira instance it doesn't activate the plugin and doesn't allow me to, that's kind of a pain.

Seems you have something very basic going wrong. What is the error when you run it via atlas-run?

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published 6 hours ago in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

84 views 4 4
Read article

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