I have a workflow designed, and when it is clicked on the issue screen, it pops this window.
I want to get the field's value highlighted as 1 when the button highlighted as 2 is pressed. But I get the value of the state the screen was shown. Is there any way I could get the value after making changes to the field 1 values?
I am unable to find anything regarding this.
Here is the script I am using in script runner:
It then opens the following screen where I can change the answers to the question:
When I change the values mentioned in 2 and click the button mentioned in 3, it takes the values of the field marked as 1. It should have taken the updated values rather than taking values in the previous screen.
I am unable to get why the scripts behave this way.
Thanks
What do you mean by "get" the value? And what are you going to do with it?
Get value means that Field 1 have some values. This is a customfield that is a bundled field. A user can change its values.
When I press the button on step 2, I want to get the updated answers of the question but what I get in the script are the old answers of the question.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am well aware of how fields work.
What I was asking is about what you mean by "get". What are you getting and why? Where is it going?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
II'm getting fetching all the answers of field 1 after the window is populated and user makes changes or not.
I then need to pass it to a Script runner script to create subtasks based on some conditions.
Currently, when the script runner receives the answers, these are from the initial state of field 1 and does mot include the changes a user makes.
I hope that I'm able to clear my point.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Nic Brough -Adaptavist- I have updated my question adding more details. Please have a look at it.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have found a workaround for this by adding a new state in workflow and it now works fine.
Thanks
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.