Hi all,
Is there a way to get the issue details in the form of a json from groovy. In other words, is it possible to achieve the functionality of the following api call - https://developer.atlassian.com/cloud/jira/platform/rest/#api-api-2-issue-issueIdOrKey-get using groovy script. ?
My requirement is to perform a regex search on an issue whenever the issue is updated. I want to find a particular string, like any string starting with http://abc-xyz.com/ (the string can be anywhere in the issue, be it body, comments, some custom field etc) and update the search results in a given CF. If anyone can point me to a solution or suggest how this can be achieved, it would be great.
Thanks,
Neha
There is a fully working Groovy snippet that gets an issue based on its key in the recipes of the PDF View Plugin: http://www.midori-global.com/products/jira-pdf-view-plugin/documentation/recipes#jira-rest-api
You can use it as is, or rework it to your needs. It is super short.
Hello,
You can call this rest api from your Groovy Code. You can find more info how to execute rest calls in a groovy script here:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.