Hello, i have run into question about context variables in atlassian-plugin.xml
-$projectKeyEncoded
-$project
-$action(in admin vm context)
Where are these variables defined? And why i can't find full list of these vars?
Thanks
Community moderators have prevented the ability to post new answers.
$project defined in pom.xml
for velocity:
$action is populated from JiraWebActionSupport.
https://confluence.atlassian.com/display/JIRA042/Contents+of+the+Velocity+Context
https://developer.atlassian.com/confdev/development-resources/confluence-architecture/confluence-internals/velocity-template-overview/confluence-objects-accessible-from-velocity
$action - you're correct. I've printed this var and checked what is it.
No, unfortunately that is different $project.
That $project variable has access to current user selected project key/id. This information aren't from POM.xml.
Also $projectKeyEncoded don't know from where.
Also i've found more variables:
<web-item key="q-item" section="q-operations" weight="20"> <label>Action</label> <link linkId="q-item">/secure/QAction!default.jspa?id=${issueId}</link> </web-item>
${issueId} - provides current issue id
<web-item key="extended-profile-popup-item" name="Extended Profile Popup Button" section="system.user.hover.links" weight="11"> <label>Extended Profile</label> <link linkId="extended-profile-popup-item">/secure/ExtendedProfile.jspa?username=${profileUser}</link> </web-item>
${profileUser} - provides current user name
It seems like they some global context vars, but i don't understand where are they defined.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
https://developer.atlassian.com/static/connect/docs/latest/concepts/context-parameters.html
There are part JIRA additional parameters
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you! It looks like answer on my question.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.