Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Get the values in to Custom field using REST API for select, multiselect without script runner?

Siva Sankar April 23, 2022

We are new to Jira Server. We hosted it on our own server. We have some rest api's which we need to call and get the values and put the values in custom field select multiselect options. We searched that there is scriptrunner plugin. We should not use that. We found that, for Jira cloud, there is an app called 'External data for Jira Fields', but this app designed and works only for jira cloud, not for jira core server . The same functionality we need to achieve for jira core server. What are the possible ways to do it?

2 answers

2 accepted

3 votes
Answer accepted
Nic Brough -Adaptavist-
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.
April 23, 2022

Welcome to the Atlassian Community!

To "get" the value of a custom field, whatever its type, all you need to do is get the issue.  See https://docs.atlassian.com/software/jira/docs/api/REST/7.6.1/#api/2/issue-getIssue

 

To "put", you'll either be creating, editing or transitioning an issue - https://docs.atlassian.com/software/jira/docs/api/REST/7.6.1/#api/2/issue-editIssue for example.

Siva Sankar April 25, 2022

Hi Nic,

First of all, that's helpful. We explored the documentation of get and create, editing issues. Let's assume we created an issue and created custom field with multiselect option. But we haven't created any options. Now, we have to write code in python (if possible) to call a third party rest api and put the values in the multiselect field. We can write the python code. We were wondering where we have to put the python code to run it automatically (or manually). Are there any packages that supports python (if possible) for jira core server or do we have to use any other language? What is the best way to do approach it?

Currently we are using a Centos Virtual Machine. Installed the Jira server in a directory.

Thanks,
Siva Sankar Puvvada.

Nic Brough -Adaptavist-
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.
April 25, 2022

The REST APIs are the external interface on to Jira.  Jira doesn't care what you write your code in, or where you run it.

3 votes
Answer accepted
Juliette Lallement _Elements Apps_
Atlassian Partner
April 23, 2022

Hi @Siva Sankar 

I am the Product Manager of Elements Connect, a third party app that allows you to bring external data inside Jira issues. 

I can confirm you you will be able to bring data from your REST APIs and bring it in multi value select lists.

Here is the listing of the app for more information: https://marketplace.atlassian.com/apps/23337/elements-connect-external-data-fields?tab=overview&hosting=server

 

I hope it helps.

Siva Sankar April 25, 2022

Thanks Juliette. That was a good contribution. Be we are more looking for free ways instead of paid apps.

Like # people like this

Suggest an answer

Log in or Sign up to answer