Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Linking issues to a story or a feature project using java jira client

Hi All,

 

    I am using jira rest java client with the below maven dependency.

<dependency>
<groupId>com.atlassian.jira</groupId>
<artifactId>jira-rest-java-client-core</artifactId>
<version>${jira.client.version}</version>
</dependency>
<dependency>
<groupId>com.atlassian.fugue</groupId>
<artifactId>fugue</artifactId>
<version>${jira.fuge.version}</version>
</dependency>

I am able create stories. But I need help in linking the issues to the story. I tried below 

Issue initiative = issueClient.getIssue("EA-253").claim();
URI uri = initiative.getSelf();

issueLinkType= new IssueLinkType("Feature", "feature", IssueLinkType.Direction.OUTBOUND);
 
IssueLink link = new IssueLink(feature.getInitiative(),uri,issueLinkType);
newIssueBuilder.setFieldInput(new FieldInput(IssueFieldId.LINKS_FIELD,ComplexIssueInputFieldValue.with("issueLinks",link)));


B

B

but I am getting error as below 

Cannot generate value - unknown type for me: com.atlassian.jira.rest.client.api.domain.IssueLink 

 

Can somebody help me how to do it?

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you