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

This widget could not be displayed.

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 Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted yesterday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

49 views 1 0
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