Hi All,
I am using Script runner for jira Plugin. I have tried with Fast-Truck Transition with issue post function. But nothing worked for me.
Is there a way to skip that status? suggest me
Hi @Pooja
My suggestion to use Script-runner Fast-Truck Transition post function for your scenario.
1.Guess the approval will be stored in a custom field,So set the custom field value as a condition for this post-function.
2.Choose the Action ID
3.Select all the Transition Options(skip permission/skip validators/skip condition)if they are not required.
3.Place this post function after the Fire event.
Note:
Check for filed setups(if any required field is empty while performing this transition)
Place this post-function for KPI Mapping status's incoming transition.
Cheers
Hi @kavi shree
I am not using any of the custom fields.
When the issue comes to the KPI Mapping second time I Don't want approval. In the Script-runner Fast-Truck Transition, I am adding the code issue.status >=1
Also I have skipped all the permissions, validators and conditions.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Not sure how issue.status >=1 works.
But the easy way would be adding a postfunction to update a costume filed value as yes for the transtion(KPI Mapping to Wireframe)
eg:
Create a custom field "Approved".Auto update as mentioned above
Set the condition as cfValues["Approved"]=="yes"//get the custom field value
and perform the transition.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have created a field with radio buttons.
I am not sure about how to auto-update custom field in script runner.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In my opinion, creating a new custom field will not work, because I have added the approval in each stage of the workflow.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Check out the link to get an idea on how to update radio field value.
Place this code in Custom script post function.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can make a direct transition from the "KPI Mapping" to "Wireframe". That's one option.
If you need to first go to the "Send for KPI Mapping Approval" and the fast track to "Wireframe" the Fast-Track Transition for Script Runner is you option. It may not be working because you need some fields for the second transition that aren't being filled. please check your required fields
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 the suggestion.
I have not added any fields/screens in the transition screen
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.