Hi how can Have my key and my issue ? with scriptrunner --> Behaviour
// importation
import com.atlassian.jira.issue.Issue
import com.atlassian.jira.issue.IssueKey
//import com.atlassian.jira.util.ImportUtils
// instanciate constructor ??? Key=Dossier issue=-17 Dossier-17(projectname)
def key = ? get something ???
def issue = ? get something what is something ??
// instanciation avec le constructeur
def mainIssue = new IssueKey(key,issue)
def f = mainIssue.getIssueNumber()
def g = mainIssue.getIssueNumber()
// formfield
def box = getFieldByName("test2")
box.setFormValue(f)
//Thank you
If you want to use the values on the screen use getIssueContext()
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you I will try this morning.
I ll give you feed back soon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
WORK THANK YOU SO MUCH !!!!
// importation
import com.atlassian.jira.issue.Issue
def key2 = getUnderlyingIssue().getKey().toString() // WORK :D
// formfield
def box2 = getFieldByName("test3")
box2.setFormValue(key2)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@[deleted] sorry to ask, but im a beginner.
Can you explain what's the difference between
log.debug('This issue underlying: ' + getUnderlyingIssue())
log.debug('This issue context: ' + getIssueContext())
Both seems to be returning same output. I'm confused
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.