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:
Summary, Custom Field Name
opttion1, YOUROPTION1000FROMSAP
...
option1000, YOUROPTION1000FROMSAP
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,
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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,
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.