Hi,
is it possible to update a custom field using REST ? I want to integrate JIRA with an external system (LiquidPlanner) and it is very easy using their REST api to keep a reference to JIRA, but I need to do the reverse as well (keep track of the LP id in JIRA). If that would work, it would only work on issue level. I also need a solution for something like that on project level and version level. Is there such a thing ?
regards,
Wim
Community moderators have prevented the ability to post new answers.
JIRA Command Line Interface : jira --action setFieldValue --issue xxx-1 --field field1 --value value1
I was hoping for something I can do in groovy directly, but would be great workaround
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
To augment Bob's answer, you can't do it using REST. The JIRA REST API is pretty much read-only at the moment (4.3). Soap is the way to go...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We use Groovy for all our integrations and run the CLI commands as part of that - it is easier to do and helps test/debug your automation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Groovy? not sure. As Jamie says, the REST api's tend to be readonly (see http://docs.atlassian.com/jira/REST/latest/ for details). Writing a Java REST plugin is what I'd think you'd need, a few lines of (java) code, use issue key as a path arg, lookup availabel CF's, locate the one you want, update the value. You'd need to replicate features accross different data types as required.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can use groovy anywhere you'd use java... groovy plugins ftw. Think Wim is writing something client-side though...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Indeed, I am for the moment just writing a stand-alone program in groovy that connects to JIRA using the REST API and copies things to LiquidPlanner. So it is mostly read from JIRA right now.
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.