how to link two objects using rest api

Lucas De Souza February 24, 2025

Hello.

I have this code, which I need to be able to update the device model attribute depending on the device model. I say we need to first create the object and then update its attributes for the model, right?

In the first part, I could do I managed to create the object, and now I am trying to generate the code to update its model device attribute. Would you be able to help me to achieve this using the rest API?

1 answer

0 votes
Pasam Venkateshwarrao
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.
February 25, 2025

Welcome @Lucas De Souza 

 

You can use this Rest API,i tried it works for me

{
  "fields": {
    "summary": "Sample Issue",
    "project": {
      "id": 14505
    },
    "issuetype": {
      "id": 11002
    }
  },
  "update": {
    "issuelinks": [
      {
        "add": {
          "type": {
            "name": "Relates"
          },
          "inwardIssue": {
            "key": "PRJ-1"
          }
        }
      }
    ]
  }
}

 

Hope this helps 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events