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 Community,
I am facing an issue to fetch custom-field value in the backend(Scriptrinner) multiple times.
I am using 1 custom field and one system field to make a condition.
1- Reporter
2- Custom-Field A
I used Reporter to fetch some information and set it on the form Custom-Field A then I get the value of Custom-Field A e.g. "Apple: in the backend and make conditions to perform a certain action. I get the backend value e.g. 112233 only once. if I change the reporter the new value sets on the form e.g. "Mango" however, in the back it wont change and remain same value e.g. 112233. How i can achieve that whenever my reporter change the the value on the form and back end both change.
Scripting on CustomField A
Thanks.
I am not sure I understand what you are trying to do here. Could you explain what you are trying to do with each script?
Script A looks like it gets the reporter, then sets a value on customfield_12345, then sets it readonly.
Script B looks like it is just reading a value from customfield_12345.
There is a problem with doing this - you can't know which way around the scripts are going to run. customfield_12345 may have its original value (or default or available if it's a create screen) when the second script executes, and then the first script changes it and sets it read only.
I would suggest changing the second script such that it runs the same logic as the first one - working out what the first script is going to do and use that value
Well, this is a tad too generic description. Any code, what you're currently doing, how?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
on reporter field i added scriptcode is :
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.