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.
Community moderators have prevented the ability to post new answers.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There are so many ways to update a issues field during a post function. You can use the Script Runner plugin.
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.