Forums

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

Identify the Smart Value for Sprint Name

Jill Fitzgerald August 27, 2024

I have automation to create stories that must exist in each sprint for specific people. It is beneficial to include the sprint name in the story's summary. I cannot figure the json or smart value to use to append that data. 

This is the automation to create the story. The sprint name needs to appear after "KLO On-call" in the Summary field. 

Screenshot 2024-08-27 154835.jpg

 

This is for the story created using the above automation. It successfully placed it in the next sprint "AUG24-18 Letters 8/28-9/10". 

How can I get that information to also appear in the Summary field?

 

{
  "expand": "renderedFields,names,schema,operations,editmeta,changelog,versionedRepresentations",
  "id": "1569958",
  "self": "https://enterprise-jira.onefiserv.net/rest/api/2/issue/1569958",
  "key": "OSPLT-3660",
  "fields": {
    "customfield_15400": null,
    "customfield_15401": null,
    "customfield_10110": null,
    "fixVersions": [
      {
        "self": "https://enterprise-jira.onefiserv.net/rest/api/2/version/51163",
        "id": "51163",
        "name": "No Release",
        "archived": false,
        "released": false
      }
    ],
    "customfield_11200": {
      "self": "https://enterprise-jira.onefiserv.net/rest/api/2/customFieldOption/15600",
      "value": "🟩 Green",
      "id": "15600",
      "disabled": false
    },
    "customfield_10111": null,
    "resolution": null,
    "customfield_15403": null,
    "customfield_11831": null,
    "customfield_10106": [
      "com.atlassian.greenhopper.service.sprint.Sprint@3b3928f4[id=18342,rapidViewId=4784,state=FUTURE,name=AUG24-18 Letters 8/28-9/10,startDate=2024-08-28T13:21:00.000Z,endDate=2024-09-11T13:21:00.000Z,completeDate=\u003Cnull\u003E,activatedDate=\u003Cnull\u003E,sequence=18342,goal=\u003Cnull\u003E,synced=false,autoStartStop=false,incompleteIssuesDestinationId=\u003Cnull\u003E]"
    ],
    "custom

2 answers

1 accepted

0 votes
Answer accepted
Marc - Devoteam
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.
August 28, 2024

Hi @Jill Fitzgerald 

Welcome to the community.

After the issue creation, add a branch in your automation based on most recent created issues and then edit the summary field.

To append the information set the summary as follows {{issues.summary}} - {{issues.sprint}}

Jill Fitzgerald August 28, 2024

This worked. Thank you!

0 votes
Kalyan Sattaluri
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.
August 27, 2024

Hello @Jill Fitzgerald 

Do you know if Sprint will be active (started) when this automation were to run? That determines if you have access to the open sprint..

Kalyan Sattaluri
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.
August 27, 2024

Also, not only that a sprint is active, there must be stories in the sprint.. then we can do lookupIssues and get the sprint name...

 

Suggest an answer

Log in or Sign up to answer