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
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
We have version Power Scripts 4.8.0.6 I used the example they have online
/*
Call this script from a workflow transition post-function.
It will set the fields to the value of the matching field in the parent issue.
*/
if(isNotNull(parent)) {
summary = %parent%.summary;
description = %parent%.description;
dueDate = %parent%.dueDate;
}
However this does not work for me, I keep getting an error (the check fails)
Is there a way you can see what the error is? I added the post function to the linked Issue...is that correct?
Hello @Nannette Mori ,
I tried your code it worked fine in my Jira instance.
If the check fails, there is a red cross on the line. If you hover on the red cross, you will have a detailed message of the error.
Could you paste a screenshot with the error?
I can't use the standard Post - Function "Copy Value from other Field because the parameters don't work because the parameters available don't work for our customized Hierarchy,
When I click on Check next to the Check button it says 1 error found but there is no red cross on the line. There is no detailed message of the error.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I did find this error in the Console
SIL Pogram >>null<<parse exception:lexical error at line at line 8,column 6 encounted:<EOF>after:""
Our power Script version is 4.8.0.6
Jira Software Version is 8.6.1
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you run it in console, you need to provide the issue key in the Run Configuration dialog screen:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can't you just use the standard Post - Function "Copy Value From Other Field" for this? (no code required)
You could also use Automation for Jira to do it (if on Cloud) again (no code required)…..not sure about Power Scripts, as I've never used it.
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.