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 votes
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 Join to answer
Community showcase
Teodora [Botron]
Published Thursday in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

409 views 1 13
Read article

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot