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

Accepted Answer
0 votes

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
Community showcase
Posted Tuesday in Featured Groups

Tuesday tips & tricks: What is the Atlassian Community?

It's officially Tuesday, which means it's officially time for another tip to help you better navigate this space we call the Atlassian Community. 😄 I got a great question from community member, Sa...

138 views 6 8
View post

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