Also you can use free Easy Integrations app's post function.
Here you can see a brief documentation on how to do that.
It is.
of course your source will have to have a rest api end point to call from to Jira.
Do you have Jira server or Cloud?
And, do you have ScriptRunner add-on? you will need this to make your rest call
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I Have Jira Server
My source is a java web application that exposes calls REST API
I dont have ScriptRunner but I have Jira Misc Workflow Extensions can I do something with it or do I need ScriptRunner?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
JMWE is good enough if you want to run your REST API call on transition (every time a speicific transition occur) you can do that with "Scripted (Groovy) operation on issue (JMWE add-on)" post-function.
If you want to run it one time from the admin add-on screen with "Groovy script tester".
In both options, you can write a groovy script, groovy is a script language based Java.
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.
Sure :)
Here is a working example i use:
import org.apache.commons.httpclient.Credentials;
import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.UsernamePasswordCredentials;
import org.apache.commons.httpclient.auth.AuthScope;
import org.apache.commons.httpclient.methods.*;
import groovy.json.*
//rest api request
HttpClient client = new HttpClient();
GetMethod method = new GetMethod("your/rest/api/url...");
Credentials credentials = new UsernamePasswordCredentials("username","password");
client.getParams().setAuthenticationPreemptive(true);
client.getState().setCredentials(AuthScope.ANY, credentials);
client.executeMethod(method);
def response = method.getResponseBodyAsString()
method.releaseConnection();
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I try to change approach.
But first I need to know if there is a way to show a web form within a (particular) field on an issue. In practice I have a web link and I need to shoot the result in a field. It's possible?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.