You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hi,
I have 2 custom fields configured as Select List (single choice) which is completed on a screen during the workflow's 1st transition. These 2 fields are used to determine the 3rd custom field which is configured as a Scripted Field.
Below is the script however when using the PREVIEW option, it always returns a NULL result even though the Preview Issue Key used has values that are in the def values section. Configure Context and Screens has been completed.
I have also created a ticket using both scenarios in the def values section however the scripted field is not displaying on the screen configured.
Would greatly appreciate any advice on how to rectify this issue.
If you are using scripted field then you can update them in post function.
if you are using the behavior script then you can use normal text field to update.
Thanks,
Sachin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you @Sachin Dhamale this assisted me in getting the results I required.
Although it is painfully that with the behavior script the value does not appear until after a transition has happened. Found it is a known issue that has been around for some time.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Instead of using getValue()
to retrieve the field values, try using getSelectedValue()
to get the selected option value from the select list. For example:
def consequenceValue = consequence.getSelectedValue() def likelihoodValue = likelihood.getSelectedValue()
Also, ensure that the custom field IDs consequenceId
, likelihoodId
, and targetFieldId
are correct and correspond to the correct custom fields.If the script still doesn't work, you may want to try debugging it by adding some log.debug()
statements i hope it will works for you because when i was facing this issue in my project hybrid matress.it was solved
thnK regarda
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for your advice @Marjina Konile , afraid the getSelectedValue() did not help in this case.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.