Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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,556,610
Community Members
 
Community Events
184
Community Groups

how to get the value of CustomField Insight Object readOnly

Hello community

I create a custom field with a type Insight Object readOnly single and i want to get his value on behaviour (not initialiser) and put it into summary

here is my code

 

    def CF = getFieldByName('Template QSA Request').value
    summaryField.setFormValue(CF)
Summary ==> null
when i remove .value
     def CF = getFieldByName('Template QSA Request').value
    summaryField.setFormValue(CF)
Sammary ==> Form field ID: customfield_16930, value: null

1 answer

1 accepted

0 votes
Answer accepted
Peter-Dave Sheehan
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Mar 21, 2023

Behaviours can only access values of fields that are on the screen (edit/create/transition).

I think by design, read-only insight fields are not displayed on screens other than the View screen.

So you'll need to use the customFieldManager to fetch the field value from the underlying issue.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events