Quantcast
Viewing all articles
Browse latest Browse all 14708

Re: Defect Transition Rule through workflow

Hi Makarand,

 

Please find below for a sample code that you might use to define your transition rules.

 

 

Function Bug_FieldCanChange(FieldName, NewValue)

   if user.isingroup("Defects") then
        if FieldName = "BG_STATUS" and NewValue = "Closed" then
           msgbox "You do not have permission to close defects"
           Bug_FieldCanChange = false
        else if FieldName = "BG_CLOSING_DATE" then
           msgbox "You do not have permission to modify closing date"
           Bug_FieldCanChange = false
        else
           Bug_FieldCanChange = true
        end if
        end if
   end if

End Sub

 

If this post solves or helps solve your issue, mark the thread as solved and please give KUDOS to the author.

 

Thanks,


Viewing all articles
Browse latest Browse all 14708

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>