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.
It works for summary, description and compontens, but it don't inherit the assignee.
This is the script I used as Server-Side-Script for an added visible field (summary):
Still, when I click on "Create a subtask" Assignee-Field stays empty.
When I add this line
the assignee appears in the description-field. So it is possible to get the value. Why it then won't work with the assignee-field?
We use Jira Server 7.7.0 and ScriptRunner 5.3.13 (latest Version).
We update Jira tomorrow to 7.9.0
It looks like you are setting by user ID. If I remember correctly, I think you might need to set by username.
Regards,
Josh
Hey Joshua,
can you give me the full line as example pls? :)
The server-side script I showed above is an example from Adaptavist website:
https://scriptrunner.adaptavist.com/latest/jira/recipes/behaviours/subtask-default-fields.html
The example there is:
getFieldById(ASSIGNEE).setFormValue(parentIssue.assigneeId)
I tried to give out the value in the description field. For that I changed the line to this:
getFieldById(DESCRIPTION).setFormValue(parentIssue.assigneeId)
Expected output: Assignee ID in the DESCRIPTION-field --> right
Why it doesn't work with the ASSIGNEE-field?
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.