Forums

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

Creating an issue with API along with description that includes tagging is not working as expected.

Surendar S
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 27, 2021

https://suren-test.atlassian.net/rest/api/latest/issue

This is post call with request body as follows

{
    "fields": {
       "project":
       {
          "key""TEST"
       },
       "summary""REST",
       "description""Creating of an issue using project keys and issue type names using the REST API @Surendar S",
       "issuetype": {
          "name""Story"
       }
   }
}
Story has been created successfully in the Jira board. The tagged name in the description is not set as expected. It just added as string. Can I achieve tagging while creating an issue using an API?

1 answer

0 votes
Yanty Ghani [ServiceRocket]
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.
October 29, 2021

Hi Surendar,

Welcome to Atlassian Community! If you would like to mention a user in the JSON file, you need to refer to them as this:

For specific user - "description": "Creating of an issue using project keys and issue type names using the REST API [~accountId:557057:1d4fd7f4-b1ac-4466-82ee-b50a95b3szx93]"

or

To refer to the assignee - "description": "Creating of an issue using project keys and issue type names using the REST API [~accountId:{{assignee.accountID}}]"

You can get the account ID by visiting their profile and looking at the end of the URL. More information is listed here, https://support.atlassian.com/jira-software-cloud/docs/smart-values-users/

Hope this helps.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events