Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Subtask Default Fields with ScriptRunner don't work for Assignee Edited

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):

2018-04-17 17_05-Behaviours - SQL Projekt AG JIRA Testsystem.png

Still, when I click on "Create a subtask" Assignee-Field stays empty. 

 

When I add this line

2018-04-17 17_13-Behaviours - SQL Projekt AG JIRA Testsystem.png

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

 

 

 

1 answer

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

2018-04-23 11_06-Unteraufgabe erstellen _ SALIA-82 - SQL Projekt AG JIRA Testsystem.png

Why it doesn't work with the ASSIGNEE-field?

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket Pipelines

Bitbucket Pipelines Runners is now in open beta

We are excited to announce the open beta program for self-hosted runners. Bitbucket Pipelines Runners is available to everyone. Please try it and let us know your feedback. If you have any issue...

472 views 10 8
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you