Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Initial release

15December 2021

Status
colourGreen
titleNEW
Issue update with API

Macrosuite hidden content macro
data{"usersAndGroups":[{"value":"62d80389278161644007d27c","label":{"key":null,"ref":null,"props":{"user":{"type":"known","accountId":"62d80389278161644007d27c","accountType":"atlassian","email":"","publicName":"Kresimir Nikolic","profilePicture":{"path":"/wiki/aa-avatar/62d80389278161644007d27c","width":48,"height":48,"isDefault":false},"displayName":"Kresimir Nikolic","isExternalCollaborator":false,"_expandable":{"operations":"","personalSpace":""},"_links":{"self":"https://caelor.atlassian.net/wiki/rest/api/user?accountId=62d80389278161644007d27c","base":"https://caelor.atlassian.net/wiki","context":"/wiki"}}},"_owner":null},"type":"user"}]}
showSelectedtrue
editorValue{"editorValue":{"version":1,"type":"doc","content":[{"type":"heading","attrs":{"level":2},"content":[{"type":"text","text":"5December 2021","marks":[{"type":"strong"}]},{"type":"text","text":" "}]},{"type":"heading","attrs":{"level":4},"content":[{"type":"status","attrs":{"text":"NEW","color":"green","localId":"4fb1e3bf-4052-46ec-aa6e-fe276de6cca2","style":"bold"}},{"type":"text","text":" Issue update with API"}]},{"type":"paragraph","content":[{"type":"text","text":"In order to update with REST API, they need to do a couple of steps
:

...

:"}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"get issue editmeta "},{"type":"text","text":"/rest/api/3/issue/{issue.key}/editmeta

...

","marks":[{"type":"code"}]}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"find custom field that they’re trying to edit

...

SINGLE_SELECT

"}]}]}]},{"type":"paragraph","content":[{"type":"text","text":"SINGLE_SELECT","marks":[{"type":"code"}]}]},{"type":"paragraph","content":[{"type":"text","text":"find in allowedValues of that custom field object option where "},{"type":"text","text":"value","marks":[{"type":"code"}]},{"type":"text","text":" contains issue key, value is "},{"type":"text","text":"{issue.key} {issue.summary}

...

","marks":[{"type":"code"}]}]},{"type":"codeBlock","attrs":{},"content":[{"type":"text","text":"{\n \"fields\": {\n \"customfield_cfid\":

...

option.id

...

//

...

number,

...

taken

...

from

...

MULTI_SELECT

allowedValues\n }\n}\n"}]},{"type":"paragraph","content":[{"type":"text","text":"MULTI_SELECT","marks":[{"type":"code"}]}]},{"type":"paragraph","content":[{"type":"text","text":"filter through allowedValues and extract all option ids of interest

...

"}]},{"type":"codeBlock","attrs":{},"content":[{"type":"text","text":"{\n \"fields\": {\n \"customfield_cfid\":

...

[...options]

...

\n }\n}\n"}]},{"type":"paragraph","content":[{"type":"text","text":"SAMPLE_FOR_BOTH

...

","marks":[{"type":"code"}]}]},{"type":"codeBlock","attrs":{},"content":[{"type":"text","text":"{\n \"fields\": {\n \"customfield_10148\":

...

7,

...

\n \"customfield_10136\":

...

[3,

...

Status
colourGreen
titleNEW

10]\n }\n}"}]},{"type":"paragraph","content":[]},{"type":"heading","attrs":{"level":4},"content":[{"type":"status","attrs":{"text":"NEW","color":"green","localId":"4c15fb99-e374-426c-a734-6428abfe7663","style":"bold"}},{"type":"text","text":" Links clickable in the old issue view

...

"}]},{"type":"paragraph","content":[{"type":"text","text":"Custom field links are now clickable in the old issue view. Due to Atlassian limitations, links in the new issue view are currently not supported. "},{"type":"text","text":"https://jira.atlassian.com/browse/JRACLOUD-77848","marks":[{"type":"link","attrs":{"href":"https://jira.atlassian.com/browse/JRACLOUD-77848

Status
colourRed
titlebugfix

"}},{"type":"underline"}]}]},{"type":"paragraph","content":[]},{"type":"heading","attrs":{"level":4},"content":[{"type":"status","attrs":{"text":"bugfix","color":"red","localId":"83df6125-0e68-4aff-b4d5-15edc208980a","style":"bold"}},{"type":"text","text":" Use Advanced Issue Links in Automation for Jira

...

"}]},{"type":"paragraph","content":[{"type":"text","text":"It is possible to use Advanced Issue Links in Automation for Jira.

single select fields

"}]},{"type":"paragraph","content":[{"type":"text","text":"single select fields"}]},{"type":"codeBlock","attrs":{},"content":[{"type":"text","text":"{\n2 \"fields\": {\n3 \"customfield_10148\": {{triggerIssue.fields.customfield_10148.id}}

...

multi select fields

...

\n4 }\n5}"}]},{"type":"paragraph","content":[{"type":"text","text":"multi select fields"}]},{"type":"codeBlock","attrs":{},"content":[{"type":"text","text":"{\n2 \"fields\": {\n3 \"customfield_10136\": {{ triggerIssue.fields.customfield_10136.id.asJsonArray

...

}}

...

additional info:

...

\n4 }\n5}"}]},{"type":"paragraph","content":[{"type":"text","text":"additional info:"}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"customfield_10148","marks":[{"type":"code"}]},{"type":"text","text":" id of a single select AdvancedIssueLinks field

...

"}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"customfield_10136","marks":[{"type":"code"}]},{"type":"text","text":" id of a multi select AIL field

...

"}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"triggerIssue","marks":[{"type":"code"}]},{"type":"text","text":" is the issue that triggered the automation, assuming this is in a branch rule

...

Status
colourRed
titlebugfix

"}]}]}]},{"type":"heading","attrs":{"level":4},"content":[{"type":"status","attrs":{"text":"bugfix","color":"red","localId":"42b92884-ff68-420b-8995-55ab0a6bfe72","style":"bold"}},{"type":"text","text":" Use Advanced Issue Links in Automation for Jira"}]},{"type":"paragraph","content":[]}]}}