there is nothing like atlas-create-jira-fecru.....as i require api's like com.atlassian.jirafisheyeplugin.domain.fisheye.FishEyeRemoteObject;....
Create the jira plugin then add the fisheye plugin as a dependency:
<dependency> <groupId>com.atlassian.jira.plugins</groupId> <artifactId>jira-fisheye-plugin</artifactId> <version>3.4.6</version> <scope>provided</scope> </dependency>
then in your atlassian-plugin.xml request the service:
<component-import key="changeSetManager"> <interface>com.atlassian.jirafisheyeplugin.domain.fisheye.ChangeSetManager</interface> </component-import> <component-import key="reviewManager"> <interface>com.atlassian.jirafisheyeplugin.domain.crucible.ReviewManager</interface> </component-import>
Then get those things through ctor dependency injection or use ComponentManager.getComponentInstanceOfType().
EDIT - you still may not get access to FishEyeRemoteObject (at runtime), if you really need them, then you need to dick with the bundle-instructions element. Expect classloader woes.
<
version
>3.4.6</
version
> which version shd i choose....
you need to dick with the bundle-instructions element....did not get this.....thnx Jamie....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
<atlassian-plugin key="${project.groupId}.${project.artifactId}" name="${project.name}" plugins-version="2">
<plugin-info>
<description>${project.description}</description>
<version>${project.version}</version>
<vendor name="${project.organization.name}" url="${project.organization.url}" />
</plugin-info>
<customfield-type key="reviewId-textField" name="Code Review ID" class="com.altair.jira.plugins.CodeReviewId">
<description>A text field which validates the code review ID with Issues</description>
<resource type="velocity" name="edit" location="templates/plugins/fields/view/view-basictext.vm"/></resource>
<resource type="velocity" name="edit" location="templates/plugins/fields/view/view-value-user.vm"/></resource>
</customfield-type>
<component-import key="changeSetManager">
<interface>com.atlassian.jirafisheyeplugin.domain.fisheye.ChangeSetManager</interface>
</component-import>
<component-import key="reviewManager">
<interface>com.atlassian.jirafisheyeplugin.domain.crucible.ReviewManager</interface>
</component-import>
</atlassian-plugin>
First i am trying to authenticate the user.......I am lost plz help.......
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
import java.util.Map;
import com.atlassian.jira.ComponentManager;
import com.atlassian.jira.issue.Issue;
import com.atlassian.jira.issue.customfields.impl.StringCFType;
import com.atlassian.jira.issue.customfields.impl.TextCFType;
import com.atlassian.jira.issue.customfields.manager.GenericConfigManager;
import com.atlassian.jira.issue.customfields.persistence.CustomFieldValuePersister;
import com.atlassian.jira.issue.fields.CustomField;
import com.atlassian.jira.issue.fields.layout.field.FieldLayoutItem;
import com.atlassian.jira.security.JiraAuthenticationContext;
public class CodeReviewId extends TextCFType {
private final JiraAuthenticationContext authContext;
public CodeReviewId(CustomFieldValuePersister customFieldValuePersister,
GenericConfigManager genericConfigManager, JiraAuthenticationContext authContext) {
super(customFieldValuePersister,genericConfigManager );
this.authContext = authContext;
}
@Override
public Map getVelocityParameters(Issue issue, CustomField field, FieldLayoutItem fieldLayoutItem) {
Map params = super.getVelocityParameters(issue, field, fieldLayoutItem);
params.put("currentUser", authContext.getLoggedInUser());
return params;
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
> which version shd i choose
whichever version your jira instance has.
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.