Forums

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

Do tempo teams map to Portfolio teams?

Susan Kraft-Yorke
January 12, 2016

In trying out Portfolio, I want to re-use the teams I define for new Portfolio sessions. I also want to port over the teams I define in Tempo.

Does anyone have information on this?

2 answers

1 accepted

Suggest an answer

Log in or Sign up to answer
0 votes
Answer accepted
Chaya
February 22, 2023
def resolution = getFieldById("resolution")
def resolutionValue = resolution.getFormValue()
def issueLinkType = getFieldById("issuelinks")

 

if(resolutionValue == "10003"){
    issueLinkType.setRequired(true)
else{
    issueLinkType.setRequired(false)
}
Above script worked for me. Instead of using resolutionValue as a string, you need to use id.
0 votes
PD Sheehan
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 Champions.
February 16, 2023

For system fields (as opposed to custom fields), I think it's best (and perhaps necessary) to use "getFieldById()"

In this case, it would be something like this (untested)

def resolution = getFieldById( 'resolution' ).value
if (resolution == "Duplicate" ){
getFieldById("issuelinks").setRequired( true )
}

Or possibly

def resolution = getFieldById( 'resolution' ).value
if (resolution == "Duplicate" ){
getFieldById("issuelinks-issues").setRequired( true )
}
Chaya
February 16, 2023

Both the scripts are not working. I have resolution field available on Resolve Issue Screen which is used only on last transition where I set Resolution. I also added Linked Issues field to that screen. 

TAGS
AUG Leaders

Atlassian Community Events