Scriptrunner post function: Update a custom text field with values from other custom fields Edited

We have a custom single text field XYZ.  In the workflow there is a transition with a post function "Create subtask".  In this post function we 'copy parent issue custom fields' which includes the field XYZ.   Whenever the value in field XYZ includes a url (i.e. https://here.we.are.com) it won't copy.  However, when the https:// is removed (i.e. here.we.are.com) it copies.

We are on JIRA 7.2.6.

Any advise?

1 answer

0 vote
Anton Chemlev Community Champion Nov 13, 2017

What type of field do you use for XYZ field? And to what type of field do you copy XYZ value?

It is a "Single Text Field"   I am copying it to the exact same custom field in a sub-task ticket.

Anton Chemlev Community Champion Nov 13, 2017

What plugin do you use to get this function? I'll try to reproduce.

It seems to me that you should try to use URL custom field type. It looks like a security feature to prevent embedding malicious urls. Maybe I'm wrong.

In the workflow transition I am using the post function "Create subtask" and in the field "Copy parent issue custom fields" I list the field XYZ (I don't specify the id, just the name).   This "Create subtask is from the plugin "Bob Swift Atlassian Add-ons - Create on Transition" of which I am using version 5.7.0.

Note I did have it as a URL but the value for that field can be a non-url value which is why we changed it to a text field.  It stores both url and non-url values.  The copying isn't allowing it though.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Sarah Schuster
Posted Mar 28, 2018 in Jira Software

Can a company’s culture make or break agile adoption?

Can a new-to-agile team survive and thrive in a non-agile culture? If so, what advice would you give to those trying to be agile in a non-agile culture? What's the key(s) to success? Share your thoug...

12,039 views 15 13
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you