Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Skip status when approval is already done

Pooja
Contributor
November 19, 2018

Hi All,

  • I have statues: KPI Mapping, Send for KPI Mapping Approval, Wireframe
  • In the first flow, The issue will flow from KPI Mapping to Wireframe with approval(Send for KPI Mapping Approval)
  • In the second case (when the issue again comes to the KPI Mapping Status), There is no need for approval. It should directly move to the Wireframe Status without approval.

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

2 answers

0 votes
kavi shree
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 19, 2018

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

Pooja
Contributor
November 19, 2018

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.

kavi shree
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 19, 2018

@Pooja

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.

Pooja
Contributor
November 19, 2018

@kavi shree

I have created a field with radio buttons.

I am not sure about how to auto-update custom field in script runner.

Pooja
Contributor
November 19, 2018

@kavi shree,

In my opinion, creating a new custom field will not work, because I have added the approval in each stage of the workflow.

kavi shree
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 19, 2018

@Pooja

Check out the link to get an idea on how to update radio field value.

 

https://community.atlassian.com/t5/Jira-questions/Error-in-Groovy-script-while-updating-radio-button-custom-Field/qaq-p/314350

 

Place this code in Custom script post function.

0 votes
Pedro Felgueiras
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 19, 2018

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 

Pooja
Contributor
November 19, 2018

Hi @Pedro Felgueiras

Thank you for the suggestion.

I have not added any fields/screens in the transition screen

Suggest an answer

Log in or Sign up to answer