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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 21, 2018 in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

1,191 views 10 18
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