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
Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

26,281 views 2 7
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