Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Automation: Is it possible to update the Description field via advanced field editing?

Connor Skiro
Contributor
April 14, 2021

When issue A is linked to issue B, I want to grab a custom field from issue A and add it to issue B's description. 

I've read and re-read the advanced field editing documentation but receive an error when following their format. Screen Shot 2021-04-14 at 11.26.48 AM.png

 

Upon further inspection, I've also found this defect in the Automation for Jira backlog which may be why I can't automate appending a string to the description field. 

Has anyone found a workaround for this?

1 answer

1 accepted

0 votes
Answer accepted
Bill Sheboy
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 14, 2021

Hi @Connor Skiro 

I am unclear how the error you linked to relates to your use case to update the Version's description.  Would you please clarify that part?

From what I know, and at this time, there is no action in automation to update an existing Version's description.  What you could do is make a web request call to the REST API to edit the version.  Here are some references if you want to try that approach:

https://support.atlassian.com/jira-software-cloud/docs/automation-actions/#Automationactions-Sendoutgoingwebrequest

https://docs.atlassian.com/software/jira/docs/api/REST/1000.824.0/#api/2/version-updateVersion

https://community.atlassian.com/t5/Jira-articles/Automation-for-Jira-Send-web-request-using-Jira-REST-API/ba-p/1443828

 

Best regards,

Bill

Connor Skiro
Contributor
April 14, 2021

Bill,

Thank you for taking the time to reply! I should have been more clear in my description. I have created an issue type called 'Release', so rule would be:

When two issues are linked -> Grab Issue A's custom field text and append it to Issue B's description. 

I just updated the description to be more clear.

Like Diego Belini likes this
Bill Sheboy
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 14, 2021

Thanks, Connor!  That helps quite a bit.

When you want to add to an existing field like Description, just add the contents to the end.  For the Edit action, you would put this in the new value to add the contents of myCustomField after the existing Description.  You shouldn't need advanced edit features with JSON to do this.

{{issue.description}}
{{issue.myCustomField}}

If this doesn't work, please consider posting an image of your complete rule.  That will provide some context for the community to comment.  Thanks!

Like # people like this
Connor Skiro
Contributor
April 14, 2021

Bill, 

Thanks for the suggestion, that worked! I just need to add an `else` case where if an issue type is linked to the Release issue type, it will do the same logic. 

Screen Shot 2021-04-14 at 1.01.41 PM.png

 

You've helped me once again, and I greatly appreciate it!

Best, 

Connor

Like Bill Sheboy likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events