how can i get access to customfield values if it has more than one (like name, category, budget and so on)

How can i get access to customfield values if it has more than one (like name, category, budget and so on).

If we use getCustomfieldValue(.....) only the internal database-key is shown.

We need it for Tempo Account values in another scripted field to show the values in seperate fields on an issue. 

May be they are attributes ore propertys instead of values but we need the access to it in scripted field. 

Best Regards

Harald Pfitzner

1 answer

1 vote

A custom field holding multiple values will return an array of options when queried.  You'll need to iterate over the array to get each one out individually

I'm not quite sure what you mean by "get access" though, or what you're trying to do.  And what are you using to generate your scripted field?

Hi,

I'm new in grovvy or over scripting in jira.

To explain it in picture the data stored in an Tempo Account.

All data are columns in a single table in database except of the Category.

image2015-3-2 16:20:1.png

image2015-3-2 15:53:50.png

The funktion getCustomfieldValue(Account) shows an unique number as result, not the Key, not the Name and so on.

We need scripted fields they show us the stored information of Contact, Category, Monthly Budget in the issue.

The biggest problem i see is the Category stored in its own table.

Please can you show me how i can get it work. 

Best regards

Harald Pfitzner   

Ah, right, that's a bit more painful. These are not customfields in the standard sense, they are fields tempo implements on Tempo accounts (standard customfields belong to JIRA issues). I don't know that you can get to them very easily - I think you need to invoke the Tempo API to read them, but I don't know how to do that

Hi, Thanks for your quick response. I will contact Tempo to get the information we need. You can close this here. Best Regards Harald Pfitzner

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,316 views 14 20
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot