Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Add WebLink to Issue from Jira Plugin

K June 24, 2013

I have a question: Is possible to add weblink (some url page) to issue from validator or postfunction in plugin Jira? How should looks java code for this operation?

Thanks for help.

Sorry for my English.

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

3 votes
Answer accepted
K June 24, 2013

Ok, i found solution:

RemoteIssueLinkBuilder remoteIssueLinkBuilder = new RemoteIssueLinkBuilder();
remoteIssueLinkBuilder.issueId(issue.getId());
remoteIssueLinkBuilder.relationship("Wiki Page");
remoteIssueLinkBuilder.title("Link Title");
remoteIssueLinkBuilder.url(url);

RemoteIssueLink remoteIssueLink = remoteIssueLinkBuilder.build();
RemoteIssueLinkService remoteIssueLinkService = ComponentManager.getComponentInstanceOfType(RemoteIssueLinkService.class);
RemoteIssueLinkService.CreateValidationResult createValidationResult = remoteIssueLinkService.validateCreate(authenticationContext.getLoggedInUser(), remoteIssueLink);
remoteIssueLinkService.create(authenticationContext.getLoggedInUser(), createValidationResult);

Thanks for try.

It's related with: https://answers.atlassian.com/questions/104043/creating-and-retrieving-jira-remote-issue-links

Saurabh Gupta July 10, 2018

thanks

0 votes
Timothy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 24, 2013

There are so many ways to update a issues field during a post function. You can use the Script Runner plugin.

K June 24, 2013

But i want to add web link like issue link in issue link section.

Here:

Issue Link Section

any ideas?

TAGS
AUG Leaders

Atlassian Community Events