Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,369,313
Community Members
 
Community Events
168
Community Groups

print the custom filed values

Hi,

I am trying to print the custom filed values of a issue in JIRA  into a JSON file.

I am able print to those value into text file using groovy script. But i wont to in a JSON format  

Please guide me

 

Kind Regards,

Naidu

 

 

1 comment

Thomas Deiler Community Leader Feb 05, 2018

Dear @Naidu Lothugedda,

best you use the REST API. The output is JSON.

So long

Thomas

Hi Thomas,

Thanks for your reply,  cloud please give some steps for that.

 

 

Kind Regards,

Naidu

Thomas Deiler Community Leader Feb 06, 2018

Dear @Naidu Lothugedda,

start here for basics on the API.

For starting over with PHP all the basics are described in the article of Daniel Radigan. What you have just to do is, adapt it to your needs. The code can be downloaded at the end of the article.

A command line PHP interpreter is also required. An official Windows version is found here (and other versions at php.net).

Finally you need to add a php.ini file to the folder of PHP, to tell PHP where to find the file php_curl.dll

extension=<path\to\php\ext>php_curl.dll


So long

Thomas

Comment

Log in or Sign up to comment