You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
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.
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.
Glad to hear! Do you wish to look as happy as me? Well, you've got the power inside you right now. So, use it, and send one dollar to Happy Dude, 742 Evergreen Terrace, Springfield. Don't delay, eternal happiness is just a dollar away.
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.
@Cristian Rosas [Tecnofor] 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.