/** * Adds a remote link to this issue. At least set the * {@link FluentRemoteLink#url(String) url} or * {@link FluentRemoteLink#globalId(String) globalId} and * {@link FluentRemoteLink#title(String) title} before * {@link FluentRemoteLink#create() creating} the link. * * @return a fluent remote link instance */ public FluentRemoteLink remoteLink() { return new FluentRemoteLink(restclient, getKey()); }
/** * Adds a remote link to this issue. * * @param url Url of the remote link * @param title Title of the remote link * @param summary Summary of the remote link * * @throws JiraException when the link creation fails * @see #remoteLink() */ public void addRemoteLink(String url, String title, String summary) throws JiraException { remoteLink().url(url).title(title).summary(summary).create(); }
/** * A globally unique identifier which uniquely identifies the remote application and the remote object within * the remote system. The maximum length is 255 characters. This call sets also the {@link #url(String) url}. * * @param globalId the global id * @return this instance */ public FluentRemoteLink globalId(final String globalId) { request.put("globalId", globalId); url(globalId); return this; }