Hi please could you help me,
I was wondering if it was possible to create a post function using script runner rest api endpoint.
So currently if you create an issue in project A for customer B, i have a post function that will clone that issue to project B. If you create an issue in project A for customer C I have another post function that will clone that issue to project C. I tried to do this in a more dynamic way but couldn't get it to work ( basically I have now set up 2 different post functions and set the conditions to be specific for that customer). So now I was wondering if a scriptrunner rest api example is available for creating a post function that I can use every time I get a new customer as opposed to creating the post function + condition manually.
created the scriptrunner post function by: Clone and link all issues > set condition to be specific to a customer C and set target project so in this case C