Forums

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

Run an internal POST REST API call in a post function

NCATS LAB
Contributor
February 27, 2019

I have a Single Select custom field that I want to add options to it dynamically based on the value entered into a text field. 

I currently am able to run a curl script that can update this option, but I want to find a way to have this happen automatically in a workflow post-function. 

For further reference, I am using the Customfield Editor Plugin (https://marketplace.atlassian.com/apps/1212096/customfield-editor-plugin?hosting=server&tab=overview)

I do not have Script Runner, and at this point I have been told that we are not purchasing any more add ons. 

Does anyone have any suggestions on how I may be able to automate this process? I am not locked into a post-function. I just can't think of another way to automate this.

1 answer

0 votes
Brant Schroeder
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 27, 2019

You can create a Webhook and use the Trigger a Webhook post function.  If you have scriptrunner you could use a custom script post-function to accomplish it as well.

NCATS LAB
Contributor
February 27, 2019

I actually had considered that, but I am not sure that I can create a Jira webhook to itself. Do you know a way to do this?

Brant Schroeder
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 27, 2019

You connect to the API.

NCATS LAB
Contributor
February 28, 2019

Brant, that is exactly what this is all about. I am trying to figure out how to run a curl script that calls the API automatically when an issue is created.

Suggest an answer

Log in or Sign up to answer