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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to set numeric value from Insight object attribute do numeric custom field in post-function

Hi,

I would like to take an attribute from Insight's object (numeric) and set it do custom field (number type). When I try to use an Insight's postfunction "Set a Jira custom field with the attribute value from a selected object ", I can't choose number's type field :(

 

Is there any other option?
I need to take a value from Object, make simple math operation (decrease) and put new value back. Can't use postfunction Increase or decrease the value of an object attribute" because change value should be taken from other cunstom filed.

Regards, 

Krzysztof

2 answers

Hi Krzysztof.

     As noted on the Postfunction itself: Supported fields are Jira Text fields and Insight custom fields. Number CF is not supported here.

The alternative is to use a script Postfunction, where you extract the Value from the Attribute, and set it to the CF. Be aware that the Number CF supports a "Double" - with 2 decimal digits.

Please have a look at our Groovy Script Examples for reference.

Kind regards,

Yinon

Team Riada

@Krzysztof Hotiuk 

Hi, I'm curious if you succeeded in the end to take a value from Object, make a simple math operation and put new value back?
If so, how did you manage this?

Kind regards, 
Marco Brundel

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Marketplace Apps & Integrations

Do Not Lose your Customer’s Trust

Missing deadlines is one of the biggest problems every team lead wants to avoid when dealing with managed services. When the customer contracts your company to help with IT services it is expected th...

24 views 0 0
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you