youngmon/atlassian-qna huggingface dataset:
Plan to edit Customer notifications
Asked by Mario Gran:

Hello,

We are using the Free Plan of Jira Service Management. To edit the customer notifications, is it enough to upgrade to the Standard Plan or do we need the Premium Plan?

Thanks


Answers:
author: Andy Heinzer
body: Hi [@Mario Gran](/t5/user/viewprofilepage/user-id/5529686)

That feature is commonly restricted for any free plan or any evaluation plan. It has to be that way because this particular feature has been abused in the past by malicious users that attempt to send spam from our services.

You should only expect to be able to edit the customer notification template once you have a paid plan. Although if you have a paid plan for JSM and still see this, you can then create a support case with us at <https://support.atlassian.com/contact> and our support team can then lift the restriction of an evaluation if still in place.

I hope this helps.

Andy

comments: author: Mario Gran
body: Thanks Andy, now it's clear.


author: Mario Gran
body: Anybody can help me with this?


author: Mario Gran
body: We can't. We get the following message. Its in Spanish and says "Templates cannot be edited with a Free plan. Improve your plan". See attachment.![Captura de pantalla 2024-06-26 141941.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/331851i334249C700199A90/image-size/large?v=v2&px=999 "Captura de pantalla 2024-06-26 141941.jpg")


author: Jack Brickey
body: Hi [@Mario Gran](/t5/user/viewprofilepage/user-id/5529686) , are you not able to edit the notifications in your current free plan? You should be able to do so under project settings \> customer notifications and click "edit" on the desired notification event.

comments: author: Jack Brickey
body: [@Mario Gran](/t5/user/viewprofilepage/user-id/5529686) , can you elaborate on exactly what you are editing and how? I am able to edit Customer notifications in my free plan.


author: Jack Brickey
body: I am going to Project settings \> Customer notifications on a Company managed JSM project.


author: Mario Gran
body: In JSM, Project settings \> Customer notifications.

There you have a list of all the notifications that your support project sends to customers. In each one there is an "Edit" button.

When you click it you get the message I attached in a previous post that says: "Templates cannot be edited with a Free plan. Improve your plan".


author: Jack Brickey
body: Thanks for sharing the details. I am scratching my head as it works for me. One last question - is your project a Company or Team managed project? This is displayed on lower left. Mine is CMP and I have not tried TMP.


author: Mario Gran
body: In ours says: You are in a project managed by the company.


author: Jack Brickey
body: Thanks. Same as me. I am at a loss as to why we are seeing differences here. I will see if we can get a better answer.


author: Mario Gran
body: Maybe in Spain (Europe) plans work in a different way as they do in USA?


Tags: cloud

jira-service-management

jira-service-management-cloud
Regular expressions (regex) for cloning part of description
Asked by Anders Baisgaard:

Hi all

I'm trying to make a manual triggered automation, that when triggered evaluates the triggerissues description through a regular expression, and then copies it to a new issue(or a linked issue)

I'm however stuck at the regex part, and can't seem to make it work. I'm trying to log to audit log

The trigger issues description will always have a structure with a number of defined headlines eg.

```
h2. Why - what is the potential business value hoped to achieve?
Lorem ipsum
```

```
h2. Assumptions / prerequisites
More lorem ipsum
```

```
h2. Breakdown
even more lorem ipsum
```

```
h2. Acceptance Criteria

# acceptance lorem ipsum 1
# acceptance lorem ipsum 2
```

So what I want is to get all sections headline and lorem ipsum text, except the breakdown section. And then add the rest of the sections to the linked issues description.

I've tried even very simple regex'es eg. just trying to find the "Why" in the first section and the rule succeeds but there's nothing in the log, so it's like I cant access the result/group and print/log it

This **xyz: {{issue.description.match("Why").group(0).toString()}} :321** just succeeds and only logs xyz: :321

Any help or pointers would be greatly appreciated :)

Thanks


Answers:
author: Bill Sheboy
body: Hi [@Anders Baisgaard](/t5/user/viewprofilepage/user-id/2508502)

Your example with "Why" finds nothing matching exactly that: "Why".

Instead you need to match on any leading or trailing characters (from your example), such as the expression ".\*Why.\*" Then use the split() function on the resulting group to get what you want to focus upon. (Or skip the match and go right to using split... :\^)

Please considering reading some of the on-line tutorials on RegEx expressions, and then see if those help. There are some linked to the help documentation for the match() function from Atlassian: <https://support.atlassian.com/jira-software-cloud/docs/smart-values-text-fields/>

Best regards,

Bill

comments: author: Anders Baisgaard
body: Hi [@Bill Sheboy](/t5/user/viewprofilepage/user-id/1685313)

I not only considered reading that, I actually read that documentation, but apparently didn't get it right :)  
I'll give your suggestion a go and see if it solves my problem - thx

/Anders
Insight automation - Update Date Value in Insight after Object Update in Jira
Asked by Andre:

Hi,

i have problems creating an automation in insight.

When a Jira Issue is updated, the actual date should be inserted into a date field. When I change the "Then" field to a status or text change, the automation works.

What I am trying to do is, that the the actual date should be written into a date- or textfield.

![automation.PNG](/t5/image/serverpage/image-id/110662i9362DB0E32A00088/image-size/large?v=v2&px=999 "automation.PNG")

--![bestellung.PNG](/t5/image/serverpage/image-id/110663iAD4971C28F5D7D9A/image-size/large?v=v2&px=999 "bestellung.PNG")

Is it possible to this with a simple automation? I'm not familar in scripting.

Many thanks for helping me out.


Answers:
author: Edwin Stol
body: Hi [@Andre](/t5/user/viewprofilepage/user-id/4002403) ,

<br />

Insight/IQL does not support now() as attribute value as far as i know. I've tried to implement a similar solution and used '[updated](https://documentation.mindville.com/insight/latest/insight-with-placeholders-33466747.html)' as next best thing.  

Cheers,  

Edwin.

comments: author: Andre
body: Thanks for helping me out. "Updated" works for me as well. Thanks again.


author: HaronSSG
body: In documentation says for support "[Placeholders](https://confluence.atlassian.com/insightapps/insight-automation-1085188388.html)"

![Ashampoo002_.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/199946iE0A74F9DC5C14D94/image-size/large?v=v2&px=999 "Ashampoo002_.jpg")

I try to use ${update} from [Advanced: Placeholders,](https://confluence.atlassian.com/servicemanagementserver/advanced-placeholders-1044784599.html)

but date not set to attribut

comments: author: Andre
body: Try using ${Updated}


author: HaronSSG
body: It worked, thanks!


author: Pieter De Bruycker
body: now() is not supported , but is an actual date supported?


Tags: cloud

insight
Automation rule to create Epic and Stories (associated to the epic)
Asked by Gabriel Viger:

Hello community,

I am trying to figure out how to create an automation rule that creates an Epic and Stories (associated to the epic) in Project A (Jira) using a manual trigger in Project B (Jira Service Desk).

Once the Epic and Stories have been created, I want to link (issue link) the Epic created in Project A to the request in Project B.

So far, I was able to create and link the epic from project A to my request in Project B but I am struggling to create the stories and associate them with the epic.

Thanks for your help!

Gabriel


Answers:
author: Kevin Bui
body: Hi [@Gabriel Viger](/t5/user/viewprofilepage/user-id/4085145) - I think the easiest way (possibly the only way?) to this would be to use two rules.

**Rule 1** - Your manual trigger rule, where the epic in Project A is created and linked to the request in Project B.

**Rule 2** - Triggered when an epic is created; creates stories in project A, and links them to the trigger epic.

Hope that helps!

comments: author: Gabriel Viger
body: Hi Kevin,

I was actually able to produce a global rule that answered my needs.

Creating the a global rule targeting 2 projets is the only way it can work.

Thanks for the follow-up!

Gabriel
How to transfer files from ticket in Service desk to epic/story in Jira
Asked by Jenny Aharonov:

We would like to have automation rule when a file is transferred from the Service Desk (Req) to an Epic.

++What do we have today++ - a client opens a ticket in the Service desk, automation creating an epic with story and subtasks in Jira with all information from the ticket.

However, if the ticket includes files we are transferring them by "hand".

++Expected behavior++- we want this transfer to be a part of the automation scenario.

Please advise how can we do it?

Thanks!


Answers:
author: Ste Wright
body: Hi [@Jenny Aharonov](/t5/user/viewprofilepage/user-id/2237676)

I don't believe this is possible in Cloud at this stage; see [AUT-1030](https://codebarrel.atlassian.net/browse/AUT-1030?oldIssueView=true) for the current status of this suggestion!

Ste

comments: author: Jenny Aharonov
body: Thanks!
i would like call jira server Rest API to get list of issues for the Project
Asked by Manjunath Reddy:

I would like to call jira rest api to get list of issues created for the project and fix version


Answers:
author: nmenere
body: Hi [@Manjunath Reddy](/t5/user/viewprofilepage/user-id/4075912) , is this Jira Automation related or are you looking to manually integrate with Jira and looking for a REST call. If so, as usual, [@Nic Brough -Adaptavist-](/t5/user/viewprofilepage/user-id/781454) is right.

Cheers,

Nick


author: Nic Brough -Adaptavist-
body: Have a look at the "search" section of <https://developer.atlassian.com/cloud/jira/platform/rest/v3/intro/> - a search for "project = x" will do what you need.

comments: author: Manjunath Reddy
body: Hi Nic,

i did not get the required information.

i want to JIRA REST API that will fetch the all the issues for given project with fix version

can you please help me more elaborately


author: Nic Brough -Adaptavist-
body: The link I gave includes "how to send a query to Jira over REST and get a response of a list of issues". Try expanding the "issue search" header on the left of the doc.

For your new query, the search becomes "project = x and fixversion = y"


Tags: cloud
Inheriting epic link from xray executions to xray tests
Asked by Craig Buchanan:

Hi

I am trying to build a automation rule that inherits the epic link from a xray test execution to the tests within a test set or that are manually linked. When I review our instance of jira it appears that epic link is a custom field and I have tried comparing field values between the linking issue and the trigger issue but no luck.

Craig


Answers:
author: Kanika Goyal
body: I have the same question Craig. Were you able to get a resolution?
Jira Automation, New Action - If status xyz, Add Flag
Asked by Jacob Jurilla:

Creating an automation workflow for our project. Need to be able to Add Flag based on an issue transitioning to a particular state. Is this available in the current version of automation in Jira? Thanks!


Answers:
author: Parvaneh Zand
body: Hi [@Jacob Jurilla](/t5/user/viewprofilepage/user-id/3745966),

Yes! You can use automation to do so. It's available for both Cloud and Server platforms.

![Untitled.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/109018iE83AF9D0F2D0F971/image-dimensions/504x352?v=v2 "Untitled.jpg")
What is the Dedicated Slack Channel panel's relationship with the Jira Issue?
Asked by Hans:

I would like to set up an automation with the action of sending an alert when a Dedicated Slack Channel is added to a particular issue type.

The problem is that I can't understand what the relationship is between the Dedicated Slack Channel panel is to the Jira issue itself, so I don't know what trigger/conditions to use to set up this automation.

It's not a field in the issue's JSON, and updating that panel (adding/removing a channel) does not appear in the history or activity of the issue, so they seem to be completely disconnected.

Could someone help me understand the relationship and how to access the associated smart value, if there is one?


Answers:
author: Daniel Eads
body: Hello [@Hans](/t5/user/viewprofilepage/user-id/3700128) ,

Currently the Jira Server for Slack app doesn't write values to the issue during dedicated channel creation that Automation would be able to trigger on. It uses a custom event that doesn't trigger the "issue updated" event in Jira.

The app is open source and the code is publicly available. [This is the event that runs when a new dedicated channel is created.](https://github.com/atlassian-labs/atlassian-slack-integration-server/blob/9559d628093a1448cde70615ac8ac634890697e4/jira-slack-server-integration/jira-slack-server-integration-plugin/src/main/java/com/atlassian/jira/plugins/slack/model/event/DedicatedChannelLinkedEvent.java) The event could be modified to trigger an issue updated event. This could be done on a local copy of the app, and/or a pull request submitted to the repo to have the app updated in Marketplace.

Cheers,  
Daniel

comments: author: wwalser
body: While it's tempting to add a customer trigger for this, I think making the Slack plugin trigger the issue updated event is the more correct route. I'm going to mark this as the correct answer.


Tags: jira-server
Calculate number of child issues per status category for an epic
Asked by flaimo:

I have added three numeric custom fields to an epic:

* Derived: ToDo
* Derived: In Progress
* Derived: Done

I would like to create automation rules to calculate the total number of issues for each field based on the status category of the derived/child issues. One trigger would be whenever an issue is added/removed to the epic and the other one, when the status of one of the child issues changes.

I played around a bit, but couldn't get it to work. Any ideas?


Answers:
author: nmenere
body: Hi,

In Jira Cloud we have recently introduced a "Lookup issues" action that allows you to lookup issues via JQL and then reference them later in the rule as a smart-value.

With this you could have a rule:

* When issue created
* Branch on Epic
  * Lookup issues where jql: "Epic link" = "{{issue.key}}" and statusCategory = new
  * Edit issue - set "Derived:ToDo" to {{lookupIssues.size}}

Does that work for you?

Cheers,  
Nick Menere \[Atlassian\]

comments: author: flaimo
body: That sounds promising, but we are using Jira Server. Will this be available there too?


author: nmenere
body: Unfortunately this is a Cloud only feature with no plan to migrate to the Server.


author: flaimo
body: ? Server users = 2nd class customers
Sprint end date
Asked by Caio Fernandes:

Hi.

I need to automate a rule that sends an email when the sprint end date arrives.  
I tried to use a rule with {{sprint.endDate}} but it's not working.

{{sprint.endDate}} greater than {{now}} + 1

Did anyone have this need?

Thank you in advance


Answers:
author: Simmo
body: Hi [@Caio Fernandes](/t5/user/viewprofilepage/user-id/1209663) ,

I'm afraid that there isn't really any easy way to do this at the moment. We have an item in our backlog, <https://community.atlassian.com/t5/Automation-questions/Sprint-end-date/qaq-p/1467444> which would help with this.

In the meantime, you might try Florian's workaround.

Cheers,

Simeon.

comments: author: Steven Remotigue
body: Any idea when this feature will be released?


author: Florian
body: I think this is only possible with a dummy issue. The documentation says that the sprint smart values are available within some triggers:

sprint {#toc-hId--1324825169}
-----------------------------

* **Added by:** the [**Sprint created**](https://support.atlassian.com/jira-software-cloud/docs/automation-triggers/), [**Sprint started**](https://support.atlassian.com/jira-software-cloud/docs/automation-triggers/) and [**Sprint completed**](https://support.atlassian.com/jira-software-cloud/docs/automation-triggers/) triggers

    {{sprint.id}}{{sprint.name}}{{sprint.isStarted}}{{sprint.isClosed}}{{sprint.startDate}}{{sprint.endDate}}{{sprint.completeDate}}{{sprint.originBoardId}}{{sprint.goal}}

So what you can do is use the "sprint start" trigger to create an issue with some marker (label, component, custom field, whatever) that allows you to identify it later. Set the due date to {{sprint.endDate}}.   

Then write a second automation with a ?schedule" trigger and som JQL like this:

project=myproject and label=sprintwatcher and resolution is empty and due\<=-1d  

Let this rule run one a day.

Then add a third automation for ?sprint completed" trigger with a branch rule with some JQL to closed the issue along with the sprint.

It's magic.

comments: author: Sadeesh Narendran
body: [@Florian](/t5/user/viewprofilepage/user-id/1494359)

What if a issue is spilled over to next sprint? the {{issue.Sprint.endDate.jiraDate}} is taking the Sprint end date of previous Sprint End Date.

How to get value of Current/ Active Sprint End date value?


author: Kelli Frattini-Adams
body: I need this too! Help - how do we do this best?


author: Garrett McCreery
body: You can run a schedule once a day and follow this method...

![getSprintStartandEnd.png](https://community.atlassian.com/t5/image/serverpage/image-id/154490iE1324E10C0039F4B/image-size/large?v=v2&px=999 "getSprintStartandEnd.png")

comments: author: Petr AST
body: Hi Garrett! [@Garrett McCreery](/t5/user/viewprofilepage/user-id/2607658)

How did it works for you? Do you have any idea why this error might occur?

Thanks!

![Screenshot_10.png](https://community.atlassian.com/t5/image/serverpage/image-id/168287i96A6613AB32345A7/image-size/large?v=v2&px=999 "Screenshot_10.png")
Trying to set remaining estimate to zero when a story is closed but its not working
Asked by Sreerampavankumar Govindarajula:

Using Jira v8.4.0 and trying to set story level remaining estimate to zero when its closed and its not working

Used Edit issue and JSON

{  
"fields": {  
"timetracking": {  
"remainingEstimate": "0",  
"originalEstimate": "{{timetracking.originalEstimate}}"  
}  
}  
}

But it errors as below as extracted from audit log. I added a comment fld at the end just to see if its getting values for originalEstimate and remainingEstimate and it does as I can see the values in the comment field

[Edit issue](https://forge.lmig.com/issues/secure/AutomationProjectAdminAction!default.jspa?projectKey=NIP#false/rule/2164/70254)

No fields or field values to edit for issues (could be due to some field values not existing in a given project):NIP-15474Unknown fields set during edit, they may be unavailable for the project/type. Check your custom field configuration. Fields ignored -Time Tracking (timetracking)

#### [Comment on issue](https://forge.lmig.com/issues/secure/AutomationProjectAdminAction!default.jspa?projectKey=NIP#false/rule/2164/70255) {#toc-hId--623761798}

Comment added to issue{{timetracking.originalEstimate}} {{timetracking.remainingEstimate}}

Also tried using system field "Remaining estimate" and it didnt work either.


Answers:
author: Sreerampavankumar Govindarajula
body: I tried solving myself.

Looks like Jira automation cannot edit fields once the trigger is on an issue being closed as it perhaps doesnt find the object/fld anymore. So I had to add addl. action to transition the issue back to "Re-opened" status and edit the remaining estimate fld and then transition back to "Copy from trigger issue" status which is either closed/done in my case.

Also I leveraged edit issue fld "Remaining estimate" and didnt need to use smart value/JSON

comments: author: Erin Quick-Laughlin
body: [@Sreerampavankumar Govindarajula](/t5/user/viewprofilepage/user-id/3968373) did you end up setting up the JA specific for transitioning to Close, or is it a job that works on any transition? I have the same exact problem trying to update a field, because our Closed status has *jira.issue.editable* property set, and we don't want to remove it. (and thus, by the time the trigger fires, the issue is closed, and uneditable).

I would prefer to find a way to temporarily change that property to do the editing, but I think your solution is better for containment to just editing that issue.
Transition destination status not resolved
Asked by Mark Wheeler:

I'm using automation to try to transition an issue to the next status in a workflow. I have a screen for all status transitions, with the minimum being just a comment screen if no other information is required.

So first question is ... if a transition has a screen then will that stop my automation working?

I suspected it might so I created an "All" transition to the status I want to go to, without a screen and renamed it to "Auto". Then I set the transition match in Automation to ".\*uto.\*" (without the quotes) ... but I get the below message.

Any tips or advice would be gratefully received.

Thanks Mark

#### [Transition issue](https://cashprocessingsolutions.atlassian.net/plugins/servlet/ac/com.codebarrel.addons.automation/cb-jira-automation-rules#!/rule/1089538/20496787) {#toc-hId--623822192}

Destination status could not be resolved. If using a smart-value ensure this resolves to a numeric status ID or untranslated name for issues (with current status):REL-376 (Submitted - 10177)


Answers:
author: nmenere
body: Hi Mark,

Did you get this working?

Screens wont affect whether transitions as fields aren't required (except Resolution when used).

Is this a next-gen project in Cloud? We have recently made this a lot easier to specify Statuses and no longer show duplicate names.

A screen shot of your rule will help see what is going on.

Cheers,  
Nick
Setting Custom Dynamic MultiSelect List in Additional fields in JIRA Automation
Asked by Pradnya Gothal:

IN JIRA Automation - On Issue Created trying clone into new issue

Want to copy Custom Dynamic MultiSelect List from trigger issue. Need syntax.

Following doesnt work

customfield_15706: "{{Issue.customfield_15706.asJsonObjectArray}}"


Answers:
author: Kirkie
body: With the Create Issue action you should see a place to select fields. From there you just toggle the Copy From menu and select "Trigger issue". This will force it to copy the value for that field from the trigger issue to the new issue.

![Screen Shot 2020-08-21 at 8.38.49 AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/107491iB65783E0C808F7B3/image-size/large?v=v2&px=999 "Screen Shot 2020-08-21 at 8.38.49 AM.png")

comments: author: Pradnya Gothal
body: I am facing issues specifically with dynamic multiselect custom fields. Other fields I am able to clone.


author: Kirkie
body: Are you saying the field won't even show up in this drop down of fields to copy?

And by dynamic multiselect you are referring to a field controlled by the dynamic fields addon I presume?


author: Pradnya Gothal
body: Yes the field wont show up in the drop down list to copy. So trying update via script in additional field. Custom Field I am using is a dynamic multi select list.


author: Kirkie
body: It looks like for now this is not directly supported by A4J, but it is a feature request to implement:

<https://codebarrel.atlassian.net/browse/AUT-1459>