Jira 7.7.1
ATLAS Version: 6.3.10
I am trying to build a Jira plugin with a set of dynamic menu choices. All my understanding of how to do this comes from posts that are a couple of years old now, and I haven't found any official documentation on the topic, so I think my information may be out of date.
My understanding is that I need to create a <web-section> and then a <web-item-provider>, which I have:
<web-section
name="My Web Section"
i18n-name-key="my-web-section.name"
key="my-web-section"
location="opsbar-operations"
weight="1000">
<label key="my-web-section.label"/>
</web-section>
<web-item-provider
key="my-web-item-provider" name="Web Item Provider"
section="my-web-section"
class="com.sample.MyWebItemProvider" />
And I'm trying to implement the provider class MyWebItemProvider:
package com.sample;
import com.atlassian.plugin.web.api.WebItem;
import com.atlassian.plugin.web.api.provider.WebItemProvider;
import java.util.Map;
public class MyWebItemProvider implements WebItemProvider {
@Override
Iterable<WebItem> getItems(Map<String, Object> context);
}
But I can't find the package and proper <dependency> entry to resolve the two imports from com.atlassian.plugin.web.api. I thought it should be:
<dependency>
<groupId>com.atlassian.plugins</groupId>
<artifactId>atlassian-plugins-webfragment-api</artifactId>
<version>4.1.0</version>
<scope>provided</scope>
</dependency>
But that doesn't do the trick.
Any help appreciated!
Ok, honestly, I don't know what changed but this is working now.
<dependency>
<groupId>com.atlassian.plugins</groupId>
<artifactId>atlassian-plugins-webfragment-api</artifactId>
<version>4.1.0</version>
<scope>provided</scope>
</dependency>
Nothing to see here, move along.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.