Forums

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

get list of object attributes in Jira custom field object

molly webster January 26, 2022

Hello!

I'm currently writing groovy script to retrieve the list of object attributes in an object linked to a Jira issue. I'm looking for a get function or method to help me with this. is there a method i can use to retrieve that list?

1 answer

0 votes
Melo
Community Champion
January 28, 2022

Hi @molly webster ,

Since you're on cloud, have you tried using Automation for Jira/smart values instead of a groovy script?

Here is the Atlassian documentation:

https://support.atlassian.com/cloud-automation/docs/jira-smart-values-insight/

Please, let me know if you're are able to solve your issue using it.

Cheers,

Melo

molly webster January 31, 2022

what would the format be for groovy script functions. because the curly brackets do not work. the object is attached to the issue custom field but i don't think the issue has access to the array list (object attributes) so it just prints out the object name and key

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events