How can we trigger transition during an update based on updates to few fields....?

Originally asked by Samip K Banker on 30 August 2019 (original question)


When a incomming update snyc comes in… we want to trigger specific transition on the destination project only if certain fields are getting updated… if certain fields are not changing we don’t want to trigger any transition…


Answer by Francis Martens (Exalate) on 30 August 2019

This logic can be added in the change processor with following generic code segment

// Transition only if the 'check it' field is set to 'done' 
...
if (issue.customFields."check it"?.value == "done") {
   workflowHelper.transition(issue, "next step")
}
...

Hope this helps


Comments:

Samip K Banker commented on 30 August 2019

Francis:

What I want is to see if “check it” was updated or not… and only if this field is updated then perform “Next step”…

~Samip

Samip K Banker commented on 02 September 2019

Any update on this?

Francis Martens (Exalate) commented on 02 September 2019

Samip,

Do you want to check if the local issue field is changed or the remote?

Samip K Banker commented on 02 September 2019

Is this posible in “Incomming Sync”

If (remote.customfield.“check it”.value != isuse.customfield.“check it”.value)

{

    // perform a  specific transition     

}

Francis Martens (Exalate) commented on 02 September 2019

Sure, no problem

Give it a try and let know the outcome

Samip K Banker commented on 03 September 2019

that worked…

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.