The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

How to automatically link between parent link and project owner.

satish
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 3, 2019
  • import com.onresolve.jira.groovy.user.FieldBehaviours
    import com.onresolve.jira.groovy.user.FormField
     
    def regissue = getFieldByName("Parent Link")
    def regver = getFieldByName("Project Owner")
     
    String vregissue = (String) regissue.getFormValue()
    String vregver = (String) regver.getFormValue()
     
    //to see values near fields uncomment sentences
    regissue.setHelpText("regissue: " + vregissue)
    regver.setHelpText("regver: " + vregver)
     
    regissue.setRequired(true)
     
    if (vregissue == "regissue") {           
           regver == vregver
    } else {
           regver.setRequired(false)
    }image.png

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events