Forums

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

Automation for JIRA: Copy a text field to Priority Field

Deleted user April 26, 2019

Hi

I need to copy the value from one text field to other field(selection)

Tryied to use the priority field.

Set the rule as in picture

 

When = issue created

Field = Priority  (system field)

Value = {{ issue.Tenable Serverity }}

 

Note:

Tenable Severity is the name for the source field. It's text and read only.

Priority is the system field and it's selection based.

 

It's not working:

error in log:

Action details:

Edit issue

Error editing issuesTRUVM-18993 (Error occurred setting field 'priority'. It will be ignored. (priority))

 

ScreenHunter_6757 Apr. 26 10.28.jpg

1 answer

1 accepted

1 vote
Answer accepted
Scott Harwood
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 Leaders.
April 28, 2019

Hi,

 

Thanks for getting in touch. The issue is that using that field it is trying to set it using its id, whereas you have its name.

To set it by its id, remove the priority field from the edit action, and select more options. In the field add this:

{
"fields": {
"Priority": { "name": "{{issue.Tenable Serverity}}" }
}
}

Thanks,

Scott

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events