Have you ever worked with Rest Endpoint in Script Runner?

Gurinder Summan February 25, 2025

Have you ever worked with Rest Endpoint in Script Runner?Or custom picker.jpegUntitled.jpg

3 answers

0 votes
Seifallah Bellassoued
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.
February 26, 2025

Hello @Gurinder Summan

 

In order to achive what you had described, I don't think you need to develop a REST Endpoint.

I guess the following procedure that doesn't require development:

  1. Create the select list custom field in jira
  2. Create a dummy jira project
  3. Prepare a CSV file with the following content
    Summary, Custom Field Name
    opttion1, YOUROPTION1000FROMSAP
    ...
    option1000, YOUROPTION1000FROMSAP
  4. Use import CSV feature of jira and import options tickets to your dummy project
  5. Check the Custom field options
  6. Delete the dummy project

My idea is to simulate an import of tickets with new options of your custom field. If the option doesn't exist, it will be added in the import.

Best Regards,

Seif,

0 votes
Matthias Gaiser _K15t_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 25, 2025

Hey @Gurinder Summan

I haven't worked with Scriptrunner to make a REST endpoint, but here are the docs in case you're searching for something specific.

If you describe what you want to achieve, the community might be able to guide you so that you achieve your goal.

Cheers,
Matthias.

Gurinder Summan February 26, 2025

We are using SAP and Jira (data center) in our organization
There is a select list field in SAP that contains about 1000 options in this field (for keeping drivers national codes)
We want to have this information in issues in Jira
So we have to create a custom field in Jira and get options from field in SAP
So we have to use API

Matthias Gaiser _K15t_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 26, 2025

An app like Elements Connect might help you. Such apps enable you to show data from SQL Databases, REST APIs, or similar, as custom fields inside Jira.

I've used that app ages ago but back then it worked perfectly for loading data from REST APIs on Jira DC.

If you're looking for a Scriptrunner solution, you might want to look at Script Fields where you can script where to load data from for your field.

0 votes
Seifallah Bellassoued
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.
February 25, 2025

Hi @Gurinder Summan

 

Kindly ind below the documentation of scriptrunner endpoint:

https://docs.adaptavist.com/sr4js/8.3.0/features/rest-endpoints

 

Do you need any other help?

Best Regards,

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events