The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Moon
Contributor
April 8, 2015

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Moon
Contributor
April 10, 2015

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. 

0 votes
Deleted user
April 9, 2015

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

0 votes
Silviu Burcea
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
April 8, 2015

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events