How can I copy a value from a custom field and copy to Component field?

I am a newbie. In my workflow, when a ticket gets created, I'd like to use:

add post function -> Script post function -> custom script post function 

to copy value of a custom field to a Component field. Any idea what the script for that will look like? Thank you in advance!

3 answers

Hi Mick,

 

If you're using the JJupin plugin, the script will be as easy as:

components = someCustomFieldName; // or customfield_12345

The components variable is predefined, the CF can be accessed by its name or id. Here is the full list of predefined variables and a SIL Getting started for newbies smile In short, SIL is the scripting language designed for JIRA(and we recently started a plugin powered by SIL for Confluence)

Hope this helps,

Silviu

the JIRA MISC Workflow plugin works for me and it's very simple and easy to use

Thanks all for your response. I also found that out my JIra Suite Utility was an older version. Newer 1.4.10 version allows a built-in function to assign a custom field to the Component field. While this functionality existed in the earlier versions, assigning to a Component was missing and was put in in 1.4.10 version. 

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 Monday 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...

685 views 6 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